@Override public void removeRelationshipProperty(long relationship, String propertyName) { int propertyKey = getOrCreatePropertyKeyId(propertyName); propertyDeletor.removeProperty( getRelationshipRecord(relationship), propertyKey, recordAccess.getPropertyRecords()); recordAccess.commit(); }
@Override public void removeNodeProperty(long node, String propertyName) { int propertyKey = getOrCreatePropertyKeyId(propertyName); propertyDeletor.removeProperty( getNodeRecord(node), propertyKey, recordAccess.getPropertyRecords()); recordAccess.commit(); }
@Override public void setRelationshipProperties(long rel, Map<String, Object> properties) { RelationshipRecord record = recordAccess.getRelRecords().getOrLoad(rel, null).forChangingData(); if (record.getNextProp() != Record.NO_NEXT_PROPERTY.intValue()) { propertyDeletor.getAndDeletePropertyChain(record, recordAccess.getPropertyRecords()); } record.setNextProp( propertyCreator.createPropertyChain( record, propertiesIterator(properties), recordAccess.getPropertyRecords())); recordAccess.commit(); }
@Override public void setNodeProperties(long node, Map<String, Object> properties) { NodeRecord record = getNodeRecord(node).forChangingData(); if (record.getNextProp() != Record.NO_NEXT_PROPERTY.intValue()) { propertyDeletor.getAndDeletePropertyChain(record, recordAccess.getPropertyRecords()); } record.setNextProp( propertyCreator.createPropertyChain( record, propertiesIterator(properties), recordAccess.getPropertyRecords())); recordAccess.commit(); }