예제 #1
0
파일: Command.java 프로젝트: naimdjon/neo4j
 public NeoStoreCommand init(NeoStoreRecord record) {
   if (record != null) {
     setup(record.getId(), Mode.fromRecordState(record));
   }
   this.record = record;
   return this;
 }
예제 #2
0
파일: Command.java 프로젝트: naimdjon/neo4j
 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;
 }
예제 #3
0
파일: Command.java 프로젝트: naimdjon/neo4j
 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;
 }
예제 #4
0
파일: Command.java 프로젝트: naimdjon/neo4j
 public LabelTokenCommand init(LabelTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
예제 #5
0
파일: Command.java 프로젝트: naimdjon/neo4j
 public RelationshipTypeTokenCommand init(RelationshipTypeTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
예제 #6
0
파일: Command.java 프로젝트: naimdjon/neo4j
 // 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;
 }
예제 #7
0
파일: Command.java 프로젝트: naimdjon/neo4j
 public PropertyKeyTokenCommand init(PropertyKeyTokenRecord record) {
   setup(record.getId(), Mode.fromRecordState(record));
   this.record = record;
   return this;
 }
예제 #8
0
파일: Command.java 프로젝트: naimdjon/neo4j
 public NodeCommand init(NodeRecord before, NodeRecord after) {
   setup(after.getId(), Mode.fromRecordState(after));
   this.before = before;
   this.after = after;
   return this;
 }