org.springframework.data.neo4j.support.node
Class NodeEntityInstantiator
java.lang.Object
org.springframework.data.neo4j.support.mapping.AbstractConstructorEntityInstantiator<org.neo4j.graphdb.Node>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeEntityInstantiator
public NodeEntityInstantiator(EntityStateHandler entityStateHandler)
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>
Copyright © 2013 SpringSource. All Rights Reserved.