public interface PersistentEntity<T,P extends PersistentProperty<P>> extends IterableSE<P>
forEachSE, iteratorSE, spliteratorSE
StringSE getName()
@Nullable PreferredConstructor<T,P> getPersistenceConstructor()
PersistentEntity
のオブジェクトをインスタンス化するために使用される PreferredConstructor
を返します。EntityInstantiator
を介して行われるか、カスタム変換メカニズムによって完全に処理されることを示しています。boolean isConstructorArgument(PersistentProperty<?> property)
PersistentProperty
が PersistentEntity
のコンストラクター引数によって参照されるかどうかを返します。property
- null でもかまいません。PersistentProperty
がコンストラクター引数によって参照される場合は true、そうでない場合は null。boolean isIdProperty(PersistentProperty<?> property)
PersistentProperty
がエンティティの id プロパティであるかどうかを返します。property
- null でもかまいません。boolean isVersionProperty(PersistentProperty<?> property)
PersistentProperty
がエンティティのバージョンプロパティかどうかを返します。property
- null でもかまいません。@Nullable P getIdProperty()
PersistentEntity
の id プロパティを返します。これがカスタム変換によって完全に処理されるエンティティである場合は、null にすることができます。PersistentEntity
の id プロパティ。default P getRequiredIdProperty()
PersistentEntity
の id プロパティを返します。PersistentEntity
の id プロパティ。IllegalStateExceptionSE
- PersistentEntity
が id プロパティを定義していない場合。@Nullable P getVersionProperty()
PersistentEntity
のバージョンプロパティを返します。エンティティで使用できるバージョンプロパティがない場合は null にできます。PersistentEntity
のバージョンプロパティ。default P getRequiredVersionProperty()
PersistentEntity
のバージョンプロパティを返します。エンティティで使用できるバージョンプロパティがない場合は null にできます。PersistentEntity
のバージョンプロパティ。IllegalStateExceptionSE
- PersistentEntity
がバージョンプロパティを定義していない場合。@Nullable P getPersistentProperty(StringSE name)
PersistentProperty
インスタンスを取得します。name
- プロパティの名前。null にすることができます。PersistentProperty
、または存在しない場合は nulldefault P getRequiredPersistentProperty(StringSE name)
PersistentProperty
を返します。name
- プロパティの名前。null または空にすることができます。PersistentProperty
IllegalStateExceptionSE
- 指定された名前のプロパティが存在しない場合。@Nullable default P getPersistentProperty(ClassSE<? extends AnnotationSE> annotationType)
Annotation
SE を備えた最初のプロパティを返します。annotationType
- null であってはなりません。IterableSE<P> getPersistentProperties(ClassSE<? extends AnnotationSE> annotationType)
Annotation
SE を備えたすべてのプロパティを返します。annotationType
- null であってはなりません。Iterator
SE。null になることはありません。boolean hasIdProperty()
PersistentEntity
に id プロパティがあるかどうかを返します。この呼び出しが true を返す場合、getIdProperty()
は null 以外の値を返します。boolean hasVersionProperty()
PersistentEntity
にバージョンプロパティがあるかどうかを返します。この呼び出しが true を返す場合、getVersionProperty()
は null 以外の値を返します。ClassSE<T> getType()
Alias getTypeAlias()
TypeInformation<T> getTypeInformation()
PersistentEntity
をサポートする TypeInformation
を返します。void doWithProperties(PropertyHandler<P> handler)
handler
- null であってはなりません。void doWithProperties(SimplePropertyHandler handler)
void doWithAssociations(AssociationHandler<P> handler)
handler
- null であってはなりません。void doWithAssociations(SimpleAssociationHandler handler)
default void doWithAll(PropertyHandler<P> handler)
handler
- null であってはなりません。@Nullable <A extends AnnotationSE> A findAnnotation(ClassSE<A> annotationType)
PersistentEntity
で指定された型のアノテーションを検索します。annotationType
- null であってはなりません。default <A extends AnnotationSE> A getRequiredAnnotation(ClassSE<A> annotationType) throws IllegalStateExceptionSE
PersistentEntity
の指定された型の必要なアノテーションを返します。annotationType
- null であってはなりません。IllegalStateExceptionSE
- 必要な annotationType
が見つからない場合。<A extends AnnotationSE> boolean isAnnotationPresent(ClassSE<A> annotationType)
PersistentEntity
に存在するかどうかを確認します。annotationType
- null であってはなりません。Annotation
SE が存在する場合は true。<B> PersistentPropertyAccessor<B> getPropertyAccessor(B bean)
PersistentPropertyAccessor
を返します。bean
- null であってはなりません。PersistentPropertyAccessor
。<B> PersistentPropertyPathAccessor<B> getPropertyPathAccessor(B bean)
PersistentPropertyPathAccessor
を返します。bean
- null であってはなりません。PersistentPropertyPathAccessor
IdentifierAccessor getIdentifierAccessor(ObjectSE bean)
IdentifierAccessor
を返します。bean
- null であってはなりません。IdentifierAccessor
。boolean isNew(ObjectSE bean)
bean
- null であってはなりません。IllegalArgumentExceptionSE
- 指定された Bean が PersistentEntity
で表される typ のインスタンスではない場合。boolean isImmutable()
getPropertyAccessor(Object)
を介して取得された PersistentPropertyAccessor
を介してインスタンスを変更しようとするべきではありません。Immutable
boolean requiresPropertyPopulation()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.