PropertyData relAddProperty(RelationshipImpl rel, PropertyIndex index, Object value) { if (!relationshipPropertyTrackers.isEmpty()) { for (PropertyTracker<Relationship> relPropertyTracker : relationshipPropertyTrackers) { relPropertyTracker.propertyAdded(getRelationshipById(rel.getId()), index.getKey(), value); } } return persistenceManager.relAddProperty(rel.getId(), index, value); }
PropertyData nodeAddProperty(NodeImpl node, PropertyIndex index, Object value) { if (!nodePropertyTrackers.isEmpty()) { for (PropertyTracker<Node> nodePropertyTracker : nodePropertyTrackers) { nodePropertyTracker.propertyAdded(getNodeById(node.getId()), index.getKey(), value); } } return persistenceManager.nodeAddProperty(node.getId(), index, value); }
void relRemoveProperty(RelationshipImpl rel, PropertyData property, TransactionState tx) { if (!relationshipPropertyTrackers.isEmpty()) { for (PropertyTracker<Relationship> relPropertyTracker : relationshipPropertyTrackers) { relPropertyTracker.propertyRemoved( getRelationshipById(rel.getId()), getIndexFor(property.getIndex(), tx).getKey(), property.getValue()); } } persistenceManager.relRemoveProperty(rel.getId(), property); }
void nodeRemoveProperty(NodeImpl node, PropertyData property, TransactionState tx) { if (!nodePropertyTrackers.isEmpty()) { for (PropertyTracker<Node> nodePropertyTracker : nodePropertyTrackers) { nodePropertyTracker.propertyRemoved( getNodeById(node.getId()), getIndexFor(property.getIndex(), tx).getKey(), property.getValue()); } } persistenceManager.nodeRemoveProperty(node.getId(), property); }
PropertyData relChangeProperty( RelationshipImpl rel, PropertyData property, Object value, TransactionState tx) { if (!relationshipPropertyTrackers.isEmpty()) { for (PropertyTracker<Relationship> relPropertyTracker : relationshipPropertyTrackers) { relPropertyTracker.propertyChanged( getRelationshipById(rel.getId()), getIndexFor(property.getIndex(), tx).getKey(), property.getValue(), value); } } return persistenceManager.relChangeProperty(rel.getId(), property, value); }
PropertyData nodeChangeProperty( NodeImpl node, PropertyData property, Object value, TransactionState tx) { if (!nodePropertyTrackers.isEmpty()) { for (PropertyTracker<Node> nodePropertyTracker : nodePropertyTrackers) { nodePropertyTracker.propertyChanged( getNodeById(node.getId()), getIndexFor(property.getIndex(), tx).getKey(), property.getValue(), value); } } return persistenceManager.nodeChangeProperty(node.getId(), property, value); }
private <T extends PropertyContainer> void deleteFromTrackers( Primitive primitive, List<PropertyTracker<T>> trackers) { if (!trackers.isEmpty()) { Iterable<String> propertyKeys = primitive.getPropertyKeys(this); T proxy = (T) primitive.asProxy(this); for (String key : propertyKeys) { Object value = primitive.getProperty(this, key); for (PropertyTracker<T> tracker : trackers) { tracker.propertyRemoved(proxy, key, value); } } } }