Spring Data Neo4j

org.springframework.data.neo4j.support.node
Class NodeEntityState

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.DefaultEntityState<org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.support.node.NodeEntityState
All Implemented Interfaces:
EntityState<org.neo4j.graphdb.Node>

public class NodeEntityState
extends DefaultEntityState<org.neo4j.graphdb.Node>

Since:
21.09.2010
Author:
Michael Hunger

Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.DefaultEntityState
entity, log, persistentEntity, type
 
Constructor Summary
NodeEntityState(org.neo4j.graphdb.Node underlyingState, Object entity, Class<? extends Object> type, Neo4jTemplate template, DelegatingFieldAccessorFactory nodeDelegatingFieldAccessorFactory, Neo4jPersistentEntity<Object> persistentEntity)
           
 
Method Summary
 void createAndAssignState()
          callback for creating and initializing an initial state TODO will be internal implementation detail of persist
 Object persist()
           
 void setPersistentState(org.neo4j.graphdb.Node node)
           
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.DefaultEntityState
accessorFor, getDefaultValue, getEntity, getIdFromEntity, getPersistentEntity, getPersistentState, getValue, getValue, hasPersistentState, isWritable, property, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEntityState

public NodeEntityState(org.neo4j.graphdb.Node underlyingState,
                       Object entity,
                       Class<? extends Object> type,
                       Neo4jTemplate template,
                       DelegatingFieldAccessorFactory nodeDelegatingFieldAccessorFactory,
                       Neo4jPersistentEntity<Object> persistentEntity)
Method Detail

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>

setPersistentState

public void setPersistentState(org.neo4j.graphdb.Node node)
Specified by:
setPersistentState in interface EntityState<org.neo4j.graphdb.Node>
Overrides:
setPersistentState in class DefaultEntityState<org.neo4j.graphdb.Node>

persist

public Object persist()

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.