Example #1
0
 @Override
 public void removeRelationshipProperty(long relationship, String propertyName) {
   int propertyKey = getOrCreatePropertyKeyId(propertyName);
   propertyDeletor.removeProperty(
       getRelationshipRecord(relationship), propertyKey, recordAccess.getPropertyRecords());
   recordAccess.commit();
 }
Example #2
0
 @Override
 public void removeNodeProperty(long node, String propertyName) {
   int propertyKey = getOrCreatePropertyKeyId(propertyName);
   propertyDeletor.removeProperty(
       getNodeRecord(node), propertyKey, recordAccess.getPropertyRecords());
   recordAccess.commit();
 }
Example #3
0
 @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();
 }
Example #4
0
 @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();
 }