Interface MutablePersistentEntity<T,P extends PersistentProperty<P>> 
- All Superinterfaces:
- Iterable<P>,- PersistentEntity<T,- P> 
- All Known Implementing Classes:
- BasicPersistentEntity
public interface MutablePersistentEntity<T,P extends PersistentProperty<P>> 
extends PersistentEntity<T,P> 
Interface capturing mutator methods for 
PersistentEntitys.- Author:
- Oliver Gierke, Mark Paluch
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAssociation(Association<P> association) Adds anAssociationto the entity.voidaddPersistentProperty(P property) Adds aPersistentPropertyto the entity.voidSets theEvaluationContextProviderto be used by the entity.voidSets thePersistentPropertyAccessorFactoryfor the entity.voidverify()Callback method to trigger validation of thePersistentEntity.Methods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntitydoWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
- 
Method Details- 
addPersistentPropertyAdds aPersistentPropertyto the entity.- Parameters:
- property-
 
- 
addAssociationAdds anAssociationto the entity.- Parameters:
- association-
 
- 
verifyCallback method to trigger validation of thePersistentEntity. AsMutablePersistentEntityis not immutable there might be some verification steps necessary after the object has reached is final state.- Throws:
- MappingException- in case the entity is invalid
 
- 
setPersistentPropertyAccessorFactorySets thePersistentPropertyAccessorFactoryfor the entity. APersistentPropertyAccessorFactorycreatesPersistentPropertyAccessors for instances of this entity.- Parameters:
- factory- must not be null.
 
- 
setEvaluationContextProviderSets theEvaluationContextProviderto be used by the entity.- Parameters:
- provider- must not be null.
 
 
-