Esempio n. 1
0
 public NeoStoreCommand init(NeoStoreRecord record) {
   if (record != null) {
     setup(record.getId(), Mode.fromRecordState(record));
   }
   this.record = record;
   return this;
 }
Esempio n. 2
0
 public RelationshipCommand init(RelationshipRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   // the default (common) case is that the record to be written is complete and not from
   // recovery or HA
   this.beforeUpdate = record;
   return this;
 }
Esempio n. 3
0
 public SchemaRuleCommand init(
     Collection<DynamicRecord> recordsBefore,
     Collection<DynamicRecord> recordsAfter,
     SchemaRule schemaRule) {
   setup(first(recordsAfter).getId(), Mode.fromRecordState(first(recordsAfter)));
   this.recordsBefore = recordsBefore;
   this.recordsAfter = recordsAfter;
   this.schemaRule = schemaRule;
   return this;
 }
Esempio n. 4
0
 public LabelTokenCommand init(LabelTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
Esempio n. 5
0
 public RelationshipTypeTokenCommand init(RelationshipTypeTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
Esempio n. 6
0
 // TODO as optimization the deserialized key/values could be passed in here
 // so that the cost of deserializing them only applies in recovery/HA
 public PropertyCommand init(PropertyRecord before, PropertyRecord after) {
   setup(after.getId(), Mode.fromRecordState(after));
   this.before = before;
   this.after = after;
   return this;
 }
Esempio n. 7
0
 public PropertyKeyTokenCommand init(PropertyKeyTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
Esempio n. 8
0
 public NodeCommand init(NodeRecord before, NodeRecord after) {
   setup(after.getId(), Mode.fromRecordState(after));
   this.before = before;
   this.after = after;
   return this;
 }