T - type of the entity.public interface EntityTransactionData<T extends org.neo4j.graphdb.Entity>
TransactionData for Entitys.| Modifier and Type | Method and Description |
|---|---|
Map<String,Change<Object>> |
changedProperties(T entity)
Get properties changed in the transaction.
|
Map<String,Object> |
createdProperties(T entity)
Get properties created in the transaction.
|
Map<String,Object> |
deletedProperties(T entity)
Get properties deleted in the transaction.
|
Collection<Change<T>> |
getAllChanged()
Get all entities changed in the transaction.
|
Collection<T> |
getAllCreated()
Get all entities created in the transaction.
|
Collection<T> |
getAllDeleted()
Get all entities deleted in the transaction as they were before the transaction started.
|
Change<T> |
getChanged(T entity)
Get a entity that has been changed in this transaction as it was before the transaction started and as it is now.
|
T |
getDeleted(T entity)
Get a entity that has been deleted in this transaction as it was before the transaction started.
|
boolean |
hasBeenChanged(T entity)
Check whether a entity has been changed in the transaction, i.e.
|
boolean |
hasBeenCreated(T entity)
Check whether the given entity has been created in the transaction.
|
boolean |
hasBeenDeleted(T entity)
Check whether the given entity has been deleted in the transaction.
|
boolean |
hasPropertyBeenChanged(T entity,
String key)
Check whether a property has been changed in the transaction.
|
boolean |
hasPropertyBeenCreated(T entity,
String key)
Check whether a property has been created in the transaction.
|
boolean |
hasPropertyBeenDeleted(T entity,
String key)
Check whether a property has been deleted in the transaction.
|
Map<String,Object> |
propertiesOfDeletedEntity(T entity)
Get properties of a deleted entity.
|
boolean hasBeenCreated(T entity)
entity - to check.Collection<T> getAllCreated()
boolean hasBeenDeleted(T entity)
entity - to check.T getDeleted(T entity)
entity - to get.IllegalArgumentException - in case the given entity has not been deleted in the transaction.Collection<T> getAllDeleted()
boolean hasBeenChanged(T entity)
entity - to check.Change<T> getChanged(T entity)
entity - to get.IllegalArgumentException - in case the given entity has not been changed in the transaction.Collection<Change<T>> getAllChanged()
boolean hasPropertyBeenCreated(T entity, String key)
entity - to check.key - of the property to check.Map<String,Object> createdProperties(T entity)
entity - for which to get created properties.boolean hasPropertyBeenDeleted(T entity, String key)
entity - to check.key - of the property to check.Map<String,Object> deletedProperties(T entity)
entity - for which to get deleted properties.Map<String,Object> propertiesOfDeletedEntity(T entity)
entity - deleted entity.boolean hasPropertyBeenChanged(T entity, String key)
entity - to check.key - of the property to check.Map<String,Change<Object>> changedProperties(T entity)
entity - for which to get changed properties.Copyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.