public interface PersistentEntity<T,P extends PersistentProperty<P>>
| Modifier and Type | Method and Description |
|---|---|
void |
doWithAssociations(AssociationHandler<P> handler)
|
void |
doWithProperties(PropertyHandler<P> handler)
|
P |
getIdProperty()
Returns the id property of the
PersistentEntity. |
String |
getName()
The entity name including any package prefix.
|
PreferredConstructor<T,P> |
getPersistenceConstructor()
Returns the
PreferredConstructor to be used to instantiate objects of this PersistentEntity. |
P |
getPersistentProperty(String name)
Obtains a
PersistentProperty instance by name. |
Class<T> |
getType()
Returns the resolved Java type of this entity.
|
Object |
getTypeAlias()
Returns the alias to be used when storing type information.
|
TypeInformation<T> |
getTypeInformation()
Returns the
TypeInformation backing this PersistentEntity. |
boolean |
isConstructorArgument(P property)
Returns whether the given
PersistentProperty is referred to by a constructor argument of the
PersistentEntity. |
boolean |
isIdProperty(P property)
Returns whether the given
PersistentProperty is the id property of the entity. |
String getName()
PreferredConstructor<T,P> getPersistenceConstructor()
PreferredConstructor to be used to instantiate objects of this PersistentEntity.EntityInstantiator or handled by custom conversion mechanisms entirely.boolean isConstructorArgument(P property)
PersistentProperty is referred to by a constructor argument of the
PersistentEntity.property - PersistentProperty is referred to by a constructor argument or false
if not or null.boolean isIdProperty(P property)
PersistentProperty is the id property of the entity.property - P getIdProperty()
PersistentEntity. Can be null in case this is an entity
completely handled by a custom conversion.PersistentEntity.P getPersistentProperty(String name)
PersistentProperty instance by name.name - The name of the propertyPersistentProperty or null if it doesn't exist.Class<T> getType()
Object getTypeAlias()
TypeInformation<T> getTypeInformation()
TypeInformation backing this PersistentEntity.void doWithProperties(PropertyHandler<P> handler)
handler - must not be null.void doWithAssociations(AssociationHandler<P> handler)
handler - must not be null.Copyright © 2012. All Rights Reserved.