public class Neo4jPersistentEntityImpl<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty> implements Neo4jPersistentEntity<T>, RelationshipProperties
Neo4jPersistentEntity
.Constructor and Description |
---|
Neo4jPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
Creates a new
Neo4jPersistentEntityImpl instance. |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(org.springframework.data.mapping.Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation) |
void |
addPersistentProperty(Neo4jPersistentProperty property) |
Neo4jPersistentProperty |
getEndNodeProperty() |
String |
getEntityName() |
StoredEntityType |
getEntityType() |
MappingPolicy |
getMappingPolicy() |
Object |
getPersistentId(Object entity) |
RelationshipProperties |
getRelationshipProperties() |
String |
getRelationshipType() |
Neo4jPersistentProperty |
getStartNodeProperty() |
Neo4jPersistentProperty |
getTypeProperty() |
Neo4jPersistentProperty |
getUniqueProperty() |
boolean |
isManaged() |
boolean |
isNodeEntity() |
boolean |
isRelationshipEntity() |
boolean |
isUnique() |
boolean |
matchesAlias(Object alias) |
void |
setPersistentState(Object entity,
org.neo4j.graphdb.PropertyContainer state) |
String |
toString() |
boolean |
useShortNames() |
void |
verify() |
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, isConstructorArgument, isIdProperty
public Neo4jPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
Neo4jPersistentEntityImpl
instance.information
- must not be null.public void verify()
verify
in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
verify
in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
public boolean useShortNames()
useShortNames
in interface Neo4jPersistentEntity<T>
public boolean isNodeEntity()
isNodeEntity
in interface Neo4jPersistentEntity<T>
public boolean isRelationshipEntity()
isRelationshipEntity
in interface Neo4jPersistentEntity<T>
public void setPersistentState(Object entity, org.neo4j.graphdb.PropertyContainer state)
setPersistentState
in interface Neo4jPersistentEntity<T>
public Object getPersistentId(Object entity)
getPersistentId
in interface Neo4jPersistentEntity<T>
public RelationshipProperties getRelationshipProperties()
getRelationshipProperties
in interface Neo4jPersistentEntity<T>
public String getEntityName()
public boolean isManaged()
public boolean isUnique()
isUnique
in interface Neo4jPersistentEntity<T>
public void addPersistentProperty(Neo4jPersistentProperty property)
addPersistentProperty
in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
addPersistentProperty
in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
public void addAssociation(org.springframework.data.mapping.Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation)
addAssociation
in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,Neo4jPersistentProperty>
addAssociation
in class org.springframework.data.mapping.model.BasicPersistentEntity<T,Neo4jPersistentProperty>
public Neo4jPersistentProperty getStartNodeProperty()
getStartNodeProperty
in interface RelationshipProperties
public Neo4jPersistentProperty getEndNodeProperty()
getEndNodeProperty
in interface RelationshipProperties
public Neo4jPersistentProperty getTypeProperty()
getTypeProperty
in interface RelationshipProperties
public String getRelationshipType()
getRelationshipType
in interface RelationshipProperties
public MappingPolicy getMappingPolicy()
getMappingPolicy
in interface Neo4jPersistentEntity<T>
public StoredEntityType getEntityType()
getEntityType
in interface Neo4jPersistentEntity<T>
public boolean matchesAlias(Object alias)
public Neo4jPersistentProperty getUniqueProperty()
getUniqueProperty
in interface Neo4jPersistentEntity<T>
Copyright © 2012 SpringSource. All Rights Reserved.