T - The type of the entity the property belongs to, either
Node or Relationship.public interface PropertyEntry<T extends PropertyContainer>
TransactionData.assignedNodeProperties() or
TransactionData.assignedRelationshipProperties(). Instances of this
interface represent the property as it was before the transaction as well as
how it will be after the transaction has been committed.| Modifier and Type | Method and Description |
|---|---|
T |
entity()
Get the entity that this property was modified on.
|
String |
key()
Get the key of the modified property.
|
Object |
previouslyCommitedValue()
Get the value of the modified property as it was before the transaction
(which modified it) started.
|
Object |
value()
Get the value of the modified property.
|
T entity()
Node or a Relationship, depending on the generic type of
this instance.Node or Relationship that the property was
modified on.String key()
Object previouslyCommitedValue()
PropertyEntry was returned
from TransactionData.assignedNodeProperties() or
TransactionData.assignedRelationshipProperties(), the value
returned from this method is the value that was set for key on
entity before the transaction started, or null if such a
property wasn't set.
If this PropertyEntry was returned from
TransactionData.removedNodeProperties() or
TransactionData.removedRelationshipProperties() the value
returned from this method is the value that was stored at this property
before the transaction started.Object value()
PropertyEntry
was returned from TransactionData.assignedNodeProperties() or
TransactionData.assignedRelationshipProperties(), the value
returned from this method is the value that will be assigned to the
property after the transaction is committed. If this
PropertyEntry was returned from
TransactionData.removedNodeProperties() or
TransactionData.removedRelationshipProperties() an
IllegalStateException will be thrown.IllegalStateException - if this method is called where this
instance represents a removed property.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.