public abstract class BatchingEntityLoaderBuilder extends Object
UniqueEntityLoader
capable of performing batch-fetch loading. Intention
is to build these instances, by first calling the static getBuilder(org.hibernate.engine.spi.SessionFactoryImplementor)
, and then calling the appropriate
buildLoader(org.hibernate.persister.entity.OuterJoinLoadable, int, org.hibernate.LockMode, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.engine.spi.LoadQueryInfluencers)
method.BatchFetchStyle
Constructor and Description |
---|
BatchingEntityLoaderBuilder() |
public static BatchingEntityLoaderBuilder getBuilder(SessionFactoryImplementor factory)
public UniqueEntityLoader buildLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
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 queryprotected UniqueEntityLoader buildNonBatchingLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
protected abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
public UniqueEntityLoader buildLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
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 queryprotected UniqueEntityLoader buildNonBatchingLoader(OuterJoinLoadable persister, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
protected abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
Copyright © 2017 JBoss by Red Hat. All rights reserved.