Spring Data Neo4j

org.springframework.data.neo4j.repository
Class GraphMetamodelEntityInformation<S extends org.neo4j.graphdb.PropertyContainer,T>

java.lang.Object
  extended by org.springframework.data.repository.core.support.AbstractEntityInformation<T,Long>
      extended by org.springframework.data.neo4j.repository.GraphMetamodelEntityInformation<S,T>
All Implemented Interfaces:
GraphEntityInformation<S,T>, org.springframework.data.repository.core.EntityInformation<T,Long>, org.springframework.data.repository.core.EntityMetadata<T>

public class GraphMetamodelEntityInformation<S extends org.neo4j.graphdb.PropertyContainer,T>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,Long>
implements GraphEntityInformation<S,T>


Constructor Summary
GraphMetamodelEntityInformation(Class domainClass, Neo4jTemplate template)
           
 
Method Summary
 Long getId(T entity)
           
 Class<Long> getIdType()
           
 boolean isNew(T entity)
           
 boolean isNodeEntity()
           
 boolean isPartialEntity()
           
 boolean isRelationshipEntity()
           
 
Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
 

Constructor Detail

GraphMetamodelEntityInformation

public GraphMetamodelEntityInformation(Class domainClass,
                                       Neo4jTemplate template)
Method Detail

isNodeEntity

public boolean isNodeEntity()
Specified by:
isNodeEntity in interface GraphEntityInformation<S extends org.neo4j.graphdb.PropertyContainer,T>

isPartialEntity

public boolean isPartialEntity()
Specified by:
isPartialEntity in interface GraphEntityInformation<S extends org.neo4j.graphdb.PropertyContainer,T>

isRelationshipEntity

public boolean isRelationshipEntity()
Specified by:
isRelationshipEntity in interface GraphEntityInformation<S extends org.neo4j.graphdb.PropertyContainer,T>

isNew

public boolean isNew(T entity)
Specified by:
isNew in interface org.springframework.data.repository.core.EntityInformation<T,Long>
Overrides:
isNew in class org.springframework.data.repository.core.support.AbstractEntityInformation<T,Long>

getId

public Long getId(T entity)
Specified by:
getId in interface org.springframework.data.repository.core.EntityInformation<T,Long>

getIdType

public Class<Long> getIdType()
Specified by:
getIdType in interface org.springframework.data.repository.core.EntityInformation<T,Long>

Spring Data Neo4j

Copyright © 2013 SpringSource. All Rights Reserved.