public class PersistentEntities extends ObjectSE implements Streamable<PersistentEntity<?,? extends PersistentProperty<?>>>
MappingContext によって管理される PersistentEntity インスタンスにアクセスするための値オブジェクト。| コンストラクターと説明 |
|---|
PersistentEntities(IterableSE<? extends MappingContext<?,?>> contexts) 指定された MappingContext の新しい PersistentEntities を作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEand, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEachSE, spliteratorSEpublic PersistentEntities(IterableSE<? extends MappingContext<?,?>> contexts)
MappingContext の新しい PersistentEntities を作成します。contexts -public static PersistentEntities of(MappingContext<?,?>... contexts)
MappingContext の新しい PersistentEntities を作成します。contexts - null であってはなりません。public OptionalSE<PersistentEntity<?,? extends PersistentProperty<?>>> getPersistentEntity(ClassSE<?> type)
PersistentEntity を返します。登録されているすべての MappingContext を考慮しますが、指定された型の PersistentEntity がまだ登録されていない場合は、Optional#empty() を返します。type - null でもかまいません。public PersistentEntity<?,? extends PersistentProperty<?>> getRequiredPersistentEntity(ClassSE<?> type)
PersistentEntity を返します。登録されているすべての MappingContext を考慮しますが、登録されているもののいずれにも、指定された型の PersistentEntity がまだ登録されていない場合は、IllegalArgumentExceptionSE をスローします。type - null であってはなりません。PersistentEntity。IllegalArgumentExceptionSE - 指定された型の PersistentEntity が見つからない場合。public <T> OptionalSE<T> mapOnContext(ClassSE<?> type, BiFunctionSE<MappingContext<?,? extends PersistentProperty<?>>,PersistentEntity<?,?>,T> combiner)
type - null であってはなりません。combiner - null であってはなりません。public Streamable<TypeInformation<?>> getManagedTypes()
MappingContext によって公開されたすべての TypeInformation を返します。public IteratorSE<PersistentEntity<?,? extends PersistentProperty<?>>> iterator()
IterableSE<PersistentEntity<?,? extends PersistentProperty<?>>> 内の iteratorSE @Nullable public PersistentEntity<?,?> getEntityUltimatelyReferredToBy(PersistentProperty<?> property)
PersistentProperty が参照する PersistentEntity を返します。直接集約参照の場合、これは単に PersistentProperty の実際の型のエンティティです。プロパティ型がエンティティではない場合(識別子型を参照している可能性があるため)、参照で定義されたターゲット型を使用し、PersistentProperty の実際の型で識別される PersistentEntity の検索にフォールバックします。property - null であってはなりません。public TypeInformation<?> getTypeUltimatelyReferredToBy(PersistentProperty<?> property)
PersistentProperty が最終的に参照する型を返します。既知のエンティティの一意の識別子型の場合は、エンティティ型を返します。property - null であってはなりません。Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.