public NeoStoreCommand init(NeoStoreRecord record) { if (record != null) { setup(record.getId(), Mode.fromRecordState(record)); } this.record = record; return this; }
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; }
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; }
public LabelTokenCommand init(LabelTokenRecord record) { setup(record.getId(), Mode.fromRecordState(record)); this.record = record; return this; }
public RelationshipTypeTokenCommand init(RelationshipTypeTokenRecord record) { setup(record.getId(), Mode.fromRecordState(record)); this.record = record; return this; }
// 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; }
public PropertyKeyTokenCommand init(PropertyKeyTokenRecord record) { setup(record.getId(), Mode.fromRecordState(record)); this.record = record; return this; }
public NodeCommand init(NodeRecord before, NodeRecord after) { setup(after.getId(), Mode.fromRecordState(after)); this.before = before; this.after = after; return this; }