Spring Data Graph

org.springframework.data.neo4j.core
Interface EntityState<ENTITY extends GraphBacked<STATE>,STATE>

All Known Implementing Classes:
DefaultEntityState, DetachedEntityState, NodeEntityState, PartialNodeEntityState, RelationshipEntityState

public interface EntityState<ENTITY extends GraphBacked<STATE>,STATE>

Interface for classes encapsulating and delegating read and write field access of an GraphBacked entity to a number of field accessors. Wraps the entity, the underlying state and also handles the creation of the state (call back).

Since:
15.09.2010
Author:
Michael Hunger

Method Summary
 void createAndAssignState()
          Deprecated. 
 ENTITY getEntity()
           
 STATE getPersistentState()
           
 Object getValue(Field field)
           
 boolean hasPersistentState()
           
 boolean isWritable(Field field)
           
 ENTITY persist()
           
 void setPersistentState(STATE state)
           
 Object setValue(Field field, Object newVal)
           
 

Method Detail

getEntity

ENTITY getEntity()

setPersistentState

void setPersistentState(STATE state)

getValue

Object getValue(Field field)
Parameters:
field -
Returns:
value of the field either from the state and/or the entity

isWritable

boolean isWritable(Field field)
Parameters:
field -
Returns:
true if the field can be written

setValue

Object setValue(Field field,
                Object newVal)
Parameters:
field -
newVal -
Returns:
sets the value in the entity and/or the state

createAndAssignState

@Deprecated
void createAndAssignState()
Deprecated. 

callback for creating and initializing an initial state TODO will be internal implementation detail of persist


hasPersistentState

boolean hasPersistentState()

getPersistentState

STATE getPersistentState()

persist

ENTITY persist()

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.