|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutablePersistentEntity<T,P extends PersistentProperty<P>>
Interface capturing mutator methods for PersistentEntity
s.
Method Summary | |
---|---|
void |
addAssociation(Association<P> association)
Adds an Association to the entity. |
void |
addPersistentProperty(P property)
Adds a PersistentProperty to the entity. |
void |
setIdProperty(P property)
Sets the id property for the entity. |
void |
verify()
Callback method to trigger validation of the PersistentEntity . |
Methods inherited from interface org.springframework.data.mapping.PersistentEntity |
---|
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistentProperty, getPreferredConstructor, getType, getTypeInformation |
Method Detail |
---|
void setIdProperty(P property)
property
- void addPersistentProperty(P property)
PersistentProperty
to the entity.
property
- void addAssociation(Association<P> association)
Association
to the entity.
association
- void verify()
PersistentEntity
. As MutablePersistentEntity
is not
immutable there might be some verification steps necessary after the object has reached is final state.
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |