|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentEntity<T,P extends PersistentProperty<P>>
Represents a persistent entity
Method Summary | |
---|---|
void |
doWithAssociations(AssociationHandler<P> handler)
|
void |
doWithProperties(PropertyHandler<P> handler)
|
Collection<Association<P>> |
getAssociations()
A list of the associations for this entity. |
P |
getIdProperty()
Returns the id property of the PersistentEntity . |
String |
getName()
The entity name including any package prefix |
Collection<P> |
getPersistentProperties()
A list of properties to be persisted |
P |
getPersistentProperty(String name)
Obtains a PersistentProperty instance by name |
Collection<String> |
getPersistentPropertyNames()
A list of property names |
PreferredConstructor<T> |
getPreferredConstructor()
|
Class<T> |
getType()
|
TypeInformation<T> |
getTypeInformation()
|
Method Detail |
---|
String getName()
PreferredConstructor<T> getPreferredConstructor()
P getIdProperty()
PersistentEntity
. Must never
return null as a PersistentEntity
instance must not be
created if there is no id property.
PersistentEntity
.Collection<P> getPersistentProperties()
Collection<Association<P>> getAssociations()
getPersistentProperties()
P getPersistentProperty(String name)
name
- The name of the property
Class<T> getType()
TypeInformation<T> getTypeInformation()
Collection<String> getPersistentPropertyNames()
void doWithProperties(PropertyHandler<P> handler)
void doWithAssociations(AssociationHandler<P> handler)
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |