Spring Data Neo4j

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

java.lang.Object
  extended by org.springframework.data.neo4j.support.mapping.AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.support.node.NodeEntityInstantiator
All Implemented Interfaces:
EntityInstantiator<org.neo4j.graphdb.Node>

public class NodeEntityInstantiator
extends AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>

Implementation of an entity instantiator for neo4j graphdb nodes, binding the entity type to a @NodeEntity pojo and the underlying state to a neo4j Node. Part of the SPI, not intended for public use.

Author:
Rod Johnson

Constructor Summary
NodeEntityInstantiator(EntityStateHandler entityStateHandler)
           
 
Method Summary
protected  String getFailingMessageForClass(Class<?> entityClass, Class<org.neo4j.graphdb.Node> stateClass)
           
protected  Class<org.neo4j.graphdb.Node> getStateInterface()
          subclasses have to provide the concrete state interface
protected  void setPersistentState(Object entity, org.neo4j.graphdb.Node node)
           
protected  void setState(Object entity, org.neo4j.graphdb.Node node)
          Subclasses must implement to set state
 
Methods inherited from class org.springframework.data.neo4j.support.mapping.AbstractConstructorEntityInstantiator
createEntityFromState, createFailingInstantiator, createInstantiator, createWithoutConstructorInvocation, getDeclaredConstructor, getNoArgConstructor, setInstantiators, stateTakingConstructorInstantiator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEntityInstantiator

public NodeEntityInstantiator(EntityStateHandler entityStateHandler)
Method Detail

setState

protected void setState(Object entity,
                        org.neo4j.graphdb.Node node)
Description copied from class: AbstractConstructorEntityInstantiator
Subclasses must implement to set state

Specified by:
setState in class AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>

setPersistentState

protected void setPersistentState(Object entity,
                                  org.neo4j.graphdb.Node node)

getFailingMessageForClass

protected String getFailingMessageForClass(Class<?> entityClass,
                                           Class<org.neo4j.graphdb.Node> stateClass)
Overrides:
getFailingMessageForClass in class AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>

getStateInterface

protected Class<org.neo4j.graphdb.Node> getStateInterface()
Description copied from class: AbstractConstructorEntityInstantiator
subclasses have to provide the concrete state interface

Specified by:
getStateInterface in class AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>

Spring Data Neo4j

Copyright © 2013 SpringSource. All Rights Reserved.