インターフェース 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の検証をトリガーするコールバックメソッド。インターフェース org.springframework.context.EnvironmentAware から継承されたメソッド
setEnvironmentインターフェース java.lang.IterableSE から継承されたメソッド
forEachSE, iterator, spliteratorインターフェース org.springframework.data.mapping.PersistentEntity から継承されたメソッド
doWithAll, 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
メソッドの詳細
addPersistentProperty
エンティティにPersistentPropertyを追加します。- パラメーター:
property-
addAssociation
エンティティにAssociationを追加します。- パラメーター:
association-
verify
PersistentEntityの検証をトリガーするコールバックメソッド。MutablePersistentEntityは不変ではないため、オブジェクトが最終状態に達した後に、いくつかの検証手順が必要になる場合があります。- 例外:
MappingException- エンティティが無効な場合
setPersistentPropertyAccessorFactory
エンティティのPersistentPropertyAccessorFactoryを設定します。PersistentPropertyAccessorFactoryは、このエンティティのインスタンスのPersistentPropertyAccessorを作成します。- パラメーター:
factory- null であってはなりません。
setEvaluationContextProvider
エンティティが使用するEvaluationContextProviderを設定します。- パラメーター:
provider- null であってはなりません。