Spring Data Neo4j

org.springframework.data.neo4j.support.mapping
Class Neo4jPersistentEntityImpl<T>

java.lang.Object
  extended by org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
      extended by org.springframework.data.neo4j.support.mapping.Neo4jPersistentEntityImpl<T>
All Implemented Interfaces:
org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,Neo4jPersistentProperty>, Neo4jPersistentEntity<T>, RelationshipProperties

public class Neo4jPersistentEntityImpl<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
implements Neo4jPersistentEntity<T>, RelationshipProperties

Implementation of Neo4jPersistentEntity.

Author:
Oliver Gierke

Constructor Summary
Neo4jPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
          Creates a new Neo4jPersistentEntityImpl instance.
 
Method Summary
 void addAssociation(org.springframework.data.mapping.Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation)
           
 void addPersistentProperty(Neo4jPersistentProperty property)
           
 Neo4jPersistentProperty getEndNodeProperty()
           
 String getEntityName()
           
 MappingPolicy getMappingPolicy()
           
 Object getPersistentId(Object entity)
           
 RelationshipProperties getRelationshipProperties()
           
 String getRelationshipType()
           
 Neo4jPersistentProperty getStartNodeProperty()
           
 Neo4jPersistentProperty getTypeProperty()
           
 boolean isManaged()
           
 boolean isNodeEntity()
           
 boolean isRelationshipEntity()
           
 void setPersistentState(Object entity, org.neo4j.graphdb.PropertyContainer state)
           
 String toString()
           
 boolean useShortNames()
           
 void verify()
           
 
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistentProperty, getPreferredConstructor, getType, getTypeAlias, getTypeInformation, setIdProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistentProperty, getPreferredConstructor, getType, getTypeAlias, getTypeInformation
 

Constructor Detail

Neo4jPersistentEntityImpl

public Neo4jPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
Creates a new Neo4jPersistentEntityImpl instance.

Parameters:
information - must not be null.
Method Detail

verify

public void verify()
Specified by:
verify in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
Overrides:
verify in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>

useShortNames

public boolean useShortNames()
Specified by:
useShortNames in interface Neo4jPersistentEntity<T>

isNodeEntity

public boolean isNodeEntity()
Specified by:
isNodeEntity in interface Neo4jPersistentEntity<T>

isRelationshipEntity

public boolean isRelationshipEntity()
Specified by:
isRelationshipEntity in interface Neo4jPersistentEntity<T>

setPersistentState

public void setPersistentState(Object entity,
                               org.neo4j.graphdb.PropertyContainer state)
Specified by:
setPersistentState in interface Neo4jPersistentEntity<T>

getPersistentId

public Object getPersistentId(Object entity)
Specified by:
getPersistentId in interface Neo4jPersistentEntity<T>

getRelationshipProperties

public RelationshipProperties getRelationshipProperties()
Specified by:
getRelationshipProperties in interface Neo4jPersistentEntity<T>

getEntityName

public String getEntityName()

isManaged

public boolean isManaged()

addPersistentProperty

public void addPersistentProperty(Neo4jPersistentProperty property)
Specified by:
addPersistentProperty in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
Overrides:
addPersistentProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>

addAssociation

public void addAssociation(org.springframework.data.mapping.Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation)
Specified by:
addAssociation in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
Overrides:
addAssociation in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>

getStartNodeProperty

public Neo4jPersistentProperty getStartNodeProperty()
Specified by:
getStartNodeProperty in interface RelationshipProperties

getEndNodeProperty

public Neo4jPersistentProperty getEndNodeProperty()
Specified by:
getEndNodeProperty in interface RelationshipProperties

getTypeProperty

public Neo4jPersistentProperty getTypeProperty()
Specified by:
getTypeProperty in interface RelationshipProperties

getRelationshipType

public String getRelationshipType()
Specified by:
getRelationshipType in interface RelationshipProperties

toString

public String toString()
Overrides:
toString in class Object

getMappingPolicy

public MappingPolicy getMappingPolicy()
Specified by:
getMappingPolicy in interface Neo4jPersistentEntity<T>

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.