クラス EntityProjectionIntrospector
java.lang.ObjectSE
org.springframework.data.projection.EntityProjectionIntrospector
このクラスは、到達可能なすべてのプロパティ(サイクルなし)のドメイン型のコンテキストで返された型をイントロスペクトして、射影の対象となるプロパティパスを決定します。
- 導入:
- 2.7
- 作成者:
- Gerrit Meier, Mark Paluch, Christoph Strobl, Oliver Drotbohm
ネストされたクラスのサマリー
ネストされたクラスメソッドのサマリー
修飾子と型メソッド説明static EntityProjectionIntrospector
create
(ProjectionFactory projectionFactory, EntityProjectionIntrospector.ProjectionPredicate projectionPredicate, MappingContext<?, ?> mappingContext) <M,
D> EntityProjection<M, D> introspect
(ClassSE<M> mappedType, ClassSE<D> domainType) 返される型が射影であるかどうか、およびどのプロパティパスが射影に参加しているかを、domain type
SE のコンテキストでmapped type
SE を調べます。
メソッドの詳細
create
public static EntityProjectionIntrospector create(ProjectionFactory projectionFactory, EntityProjectionIntrospector.ProjectionPredicate projectionPredicate, MappingContext<?, ?> mappingContext) ProjectionFactory
、EntityProjectionIntrospector.ProjectionPredicate
、MappingContext
を指定して新しいEntityProjectionIntrospector
を作成します。- パラメーター:
projectionFactory
- null であってはなりません。projectionPredicate
- null であってはなりません。mappingContext
- null であってはなりません。- 戻り値:
- 新しい
EntityProjectionIntrospector
インスタンス。
introspect
返される型が射影であるかどうか、およびどのプロパティパスが射影に参加しているかを、domain type
SE のコンテキストでmapped type
SE を調べます。ネストされたプロパティ(直接型、マップ内、コレクション)は、ネストされた射影に対してイントロスペクトされ、閉じた射影のプロパティパスが含まれます。
深くネストされた型(
Map<?, List<Person>>
など)は、ラップされていない型を使用し、ルートドメイン型D
ではなくなったプロパティパスで表されます。- パラメーター:
mappedType
- null であってはなりません。domainType
- null であってはなりません。- 戻り値:
- イントロスペクションの結果。
- 関連事項: