org.springframework.data.neo4j.support.mapping
Class Neo4jPersistentEntityImpl<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
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
| Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity |
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty |
| Methods inherited from interface org.springframework.data.mapping.PersistentEntity |
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty |
Neo4jPersistentEntityImpl
public Neo4jPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
- Creates a new
Neo4jPersistentEntityImpl instance.
- Parameters:
information - must not be null.
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()
isUnique
public boolean isUnique()
- Specified by:
isUnique in interface Neo4jPersistentEntity<T>
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>
getEntityType
public StoredEntityType getEntityType()
- Specified by:
getEntityType in interface Neo4jPersistentEntity<T>
matchesAlias
public boolean matchesAlias(Object alias)
getUniqueProperty
public Neo4jPersistentProperty getUniqueProperty()
- Specified by:
getUniqueProperty in interface Neo4jPersistentEntity<T>
Copyright © 2013 SpringSource. All Rights Reserved.