类 BatchingEntityLoaderBuilder
- java.lang.Object
-
- org.hibernate.loader.entity.BatchingEntityLoaderBuilder
-
- 直接已知子类:
AbstractBatchingEntityLoaderBuilder,DynamicBatchingEntityLoaderBuilder,LegacyBatchingEntityLoaderBuilder
public abstract class BatchingEntityLoaderBuilder extends Object
The contract for buildingUniqueEntityLoadercapable of performing batch-fetch loading. Intention is to build these instances, by first calling the staticgetBuilder(org.hibernate.engine.spi.SessionFactoryImplementor), and then calling the appropriatebuildLoader(org.hibernate.persister.entity.OuterJoinLoadable, int, org.hibernate.LockMode, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.engine.spi.LoadQueryInfluencers)method.- 作者:
- Steve Ebersole
- 另请参阅:
BatchFetchStyle
-
-
构造器概要
构造器 构造器 说明 BatchingEntityLoaderBuilder()
-
方法概要
-
-
-
方法详细资料
-
getBuilder
public static BatchingEntityLoaderBuilder getBuilder(SessionFactoryImplementor factory)
-
buildLoader
public UniqueEntityLoader buildLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
Builds a batch-fetch capable loader based on the given persister, lock-mode, etc.- 参数:
persister- The entity persisterbatchSize- The maximum number of ids to batch-fetch at oncelockMode- The lock modefactory- The SessionFactoryinfluencers- Any influencers that should affect the built query- 返回:
- The loader.
-
buildNonBatchingLoader
protected UniqueEntityLoader buildNonBatchingLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
-
buildBatchingLoader
protected abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
-
buildLoader
public UniqueEntityLoader buildLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
Builds a batch-fetch capable loader based on the given persister, lock-options, etc.- 参数:
persister- The entity persisterbatchSize- The maximum number of ids to batch-fetch at oncelockOptions- The lock optionsfactory- The SessionFactoryinfluencers- Any influencers that should affect the built query- 返回:
- The loader.
-
buildNonBatchingLoader
protected UniqueEntityLoader buildNonBatchingLoader(OuterJoinLoadable persister, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
-
buildBatchingLoader
protected abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
-
-