Package org.hibernate.loader.entity
Class DynamicBatchingEntityLoaderBuilder
- java.lang.Object
-
- org.hibernate.loader.entity.BatchingEntityLoaderBuilder
-
- org.hibernate.loader.entity.DynamicBatchingEntityLoaderBuilder
-
public class DynamicBatchingEntityLoaderBuilder extends BatchingEntityLoaderBuilder
A BatchingEntityLoaderBuilder that builds UniqueEntityLoader instances capable of dynamically building its batch-fetch SQL based on the actual number of entity ids waiting to be fetched.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader
-
Field Summary
Fields Modifier and Type Field Description static DynamicBatchingEntityLoaderBuilderINSTANCE
-
Constructor Summary
Constructors Constructor Description DynamicBatchingEntityLoaderBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UniqueEntityLoaderbuildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)protected UniqueEntityLoaderbuildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)static QueryParametersbuildMultiLoadQueryParameters(OuterJoinLoadable persister, Serializable[] ids, LockOptions lockOptions)ListmultiLoad(OuterJoinLoadable persister, Serializable[] ids, SharedSessionContractImplementor session, MultiLoadOptions loadOptions)protected ListperformUnorderedMultiLoad(OuterJoinLoadable persister, Serializable[] ids, SharedSessionContractImplementor session, MultiLoadOptions loadOptions)-
Methods inherited from class org.hibernate.loader.entity.BatchingEntityLoaderBuilder
buildLoader, buildLoader, buildNonBatchingLoader, buildNonBatchingLoader, getBuilder
-
-
-
-
Field Detail
-
INSTANCE
public static final DynamicBatchingEntityLoaderBuilder INSTANCE
-
-
Method Detail
-
multiLoad
public List multiLoad(OuterJoinLoadable persister, Serializable[] ids, SharedSessionContractImplementor session, MultiLoadOptions loadOptions)
-
performUnorderedMultiLoad
protected List performUnorderedMultiLoad(OuterJoinLoadable persister, Serializable[] ids, SharedSessionContractImplementor session, MultiLoadOptions loadOptions)
-
buildMultiLoadQueryParameters
public static QueryParameters buildMultiLoadQueryParameters(OuterJoinLoadable persister, Serializable[] ids, LockOptions lockOptions)
-
buildBatchingLoader
protected UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
- Specified by:
buildBatchingLoaderin classBatchingEntityLoaderBuilder
-
buildBatchingLoader
protected UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
- Specified by:
buildBatchingLoaderin classBatchingEntityLoaderBuilder
-
-