Spring Data Graph

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

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 GraphBacked<S>>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,Long>
implements GraphEntityInformation<S,T>


Constructor Summary
GraphMetamodelEntityInformation(Class domainClass, GraphDatabaseContext graphDatabaseContext)
           
 
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,
                                       GraphDatabaseContext graphDatabaseContext)
Method Detail

isNodeEntity

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

isPartialEntity

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

isRelationshipEntity

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

isNew

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

getId

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

getIdType

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

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.