org.springframework.data.neo4j.cross_store.support.node
Class CrossStoreNodeEntityState<ENTITY extends NodeBacked>
java.lang.Object
org.springframework.data.neo4j.fieldaccess.DefaultEntityState<org.neo4j.graphdb.Node>
org.springframework.data.neo4j.cross_store.support.node.CrossStoreNodeEntityState<ENTITY>
- All Implemented Interfaces:
- EntityState<org.neo4j.graphdb.Node>
public class CrossStoreNodeEntityState<ENTITY extends NodeBacked>
- extends DefaultEntityState<org.neo4j.graphdb.Node>
- Since:
- 21.09.2010
- Author:
- Michael Hunger
Methods inherited from class org.springframework.data.neo4j.fieldaccess.DefaultEntityState |
accessorFor, getDefaultValue, getEntity, getIdFromEntity, getPersistentEntity, getPersistentState, getValue, getValue, hasPersistentState, property, setPersistentState, setValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOREIGN_ID
public static final String FOREIGN_ID
- See Also:
- Constant Field Values
FOREIGN_ID_INDEX
public static final String FOREIGN_ID_INDEX
- See Also:
- Constant Field Values
CrossStoreNodeEntityState
public CrossStoreNodeEntityState(org.neo4j.graphdb.Node underlyingState,
NodeBacked entity,
Class<? extends NodeBacked> type,
Neo4jTemplate template,
javax.persistence.PersistenceUnitUtil persistenceUnitUtil,
DelegatingFieldAccessorFactory delegatingFieldAccessorFactory,
Neo4jPersistentEntity persistentEntity)
createAndAssignState
public void createAndAssignState()
- Description copied from interface:
EntityState
- callback for creating and initializing an initial state
TODO will be internal implementation detail of persist
- Specified by:
createAndAssignState
in interface EntityState<org.neo4j.graphdb.Node>
- Specified by:
createAndAssignState
in class DefaultEntityState<org.neo4j.graphdb.Node>
persist
public ENTITY persist()
isWritable
public boolean isWritable(Neo4jPersistentProperty property)
- Specified by:
isWritable
in interface EntityState<org.neo4j.graphdb.Node>
- Overrides:
isWritable
in class DefaultEntityState<org.neo4j.graphdb.Node>
- Returns:
- true if the field can be written
getId
public Object getId(Object entity)
Copyright © 2013 SpringSource. All Rights Reserved.