public interface GraphBacked<STATE,ENTITY extends GraphBacked<STATE,ENTITY>> extends ManagedEntity<STATE,ENTITY>
Node
or a Relationship.
Subclasses of this interface bind the type parameter to a concrete Node or Relationship state.| Modifier and Type | Method and Description |
|---|---|
STATE |
getPersistentState() |
boolean |
hasPersistentState() |
void |
remove()
removes the entity using @{link Neo4jTemplate.removeNodeEntity}
the entity and relationship are still accessible after removal but before transaction commit
but all modifications will throw an exception
|
void |
setPersistentState(STATE state)
internal setter used for initializing the graph-db state on existing or newly created entities
|
getEntityState, persistvoid setPersistentState(STATE state)
setPersistentState in interface ManagedEntity<STATE,ENTITY extends GraphBacked<STATE,ENTITY>>state - (Node or Relationship)STATE getPersistentState()
getPersistentState in interface ManagedEntity<STATE,ENTITY extends GraphBacked<STATE,ENTITY>>boolean hasPersistentState()
void remove()
Copyright © 2012 SpringSource. All Rights Reserved.