Spring Data Graph

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

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

public class NodeEntityInstantiator
extends org.springframework.data.persistence.AbstractConstructorEntityInstantiator<NodeBacked,org.neo4j.graphdb.Node>

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

Author:
Rod Johnson

Constructor Summary
NodeEntityInstantiator()
           
 
Method Summary
protected  String getFailingMessageForClass(Class<?> entityClass, Class<org.neo4j.graphdb.Node> stateClass)
           
protected  void setState(NodeBacked entity, org.neo4j.graphdb.Node s)
           
 
Methods inherited from class org.springframework.data.persistence.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()
Method Detail

setState

protected void setState(NodeBacked entity,
                        org.neo4j.graphdb.Node s)
Specified by:
setState in class org.springframework.data.persistence.AbstractConstructorEntityInstantiator<NodeBacked,org.neo4j.graphdb.Node>

getFailingMessageForClass

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

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.