インターフェース MutablePersistentEntity<T, P extends PersistentProperty<P>>
- すべてのスーパーインターフェース:
Aware, EnvironmentAware, IterableSE<P>, PersistentEntity<T,P>
- すべての既知の実装クラス:
BasicPersistentEntity
public interface MutablePersistentEntity<T, P extends PersistentProperty<P>>
extends PersistentEntity<T,P>, EnvironmentAware
PersistentEntity のミューテーターメソッドをキャプチャーするインターフェース。- 作成者:
- Oliver Gierke, Mark Paluch
方法の概要
修飾子と型メソッド説明voidaddAssociation(Association<P> association) エンティティにAssociationを追加します。voidaddPersistentProperty(P property) エンティティにPersistentPropertyを追加します。voidエンティティが使用するEvaluationContextProviderを設定します。voidエンティティのPersistentPropertyAccessorFactoryを設定します。voidverify()PersistentEntityの検証をトリガーするコールバックメソッド。インターフェース EnvironmentAware から継承されたメソッド
setEnvironmentインターフェース IterableSE から継承されたメソッド
forEachSE, iterator, spliteratorインターフェース PersistentEntity から継承されたメソッド
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
メソッドの詳細
addPersistentProperty
addAssociation
verify
PersistentEntityの検証をトリガーするコールバックメソッド。MutablePersistentEntityは不変ではないため、オブジェクトが最終状態に達した後に、いくつかの検証手順が必要になる場合があります。- 例外:
MappingException- エンティティが無効な場合
setPersistentPropertyAccessorFactory
エンティティのPersistentPropertyAccessorFactoryを設定します。PersistentPropertyAccessorFactoryは、このエンティティのインスタンスのPersistentPropertyAccessorを作成します。- パラメーター:
factory- null であってはなりません。
setEvaluationContextProvider
エンティティが使用するEvaluationContextProviderを設定します。- パラメーター:
provider- null であってはなりません。