public class Neo4jPersistentEntityImpl<T> extends BasicPersistentEntity<T,Neo4jPersistentProperty> implements Neo4jPersistentEntity<T>, RelationshipProperties
Neo4jPersistentEntity
.hasIdProperty, hasVersionProperty
hasIdProperty, hasVersionProperty
Constructor and Description |
---|
Neo4jPersistentEntityImpl(TypeInformation<T> information,
EntityAlias entityAlias)
Creates a new
Neo4jPersistentEntityImpl instance. |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation) |
void |
addPersistentProperty(Neo4jPersistentProperty property) |
Collection<String> |
getAllLabels() |
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, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
public Neo4jPersistentEntityImpl(TypeInformation<T> information, EntityAlias entityAlias)
Neo4jPersistentEntityImpl
instance.information
- must not be null.entityAlias
- public void verify()
verify
in interface MutablePersistentEntity<T,Neo4jPersistentProperty>
verify
in class 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 MutablePersistentEntity<T,Neo4jPersistentProperty>
addPersistentProperty
in class BasicPersistentEntity<T,Neo4jPersistentProperty>
public void addAssociation(Association<Neo4jPersistentProperty> neo4jPersistentPropertyAssociation)
addAssociation
in interface MutablePersistentEntity<T,Neo4jPersistentProperty>
addAssociation
in class 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>
public Collection<String> getAllLabels()
getAllLabels
in interface Neo4jPersistentEntity<T>
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.