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() |
Modifier and Type | Method and Description |
---|---|
protected abstract UniqueEntityLoader |
buildBatchingLoader(OuterJoinLoadable persister,
int batchSize,
LockMode lockMode,
SessionFactoryImplementor factory,
LoadQueryInfluencers influencers) |
protected abstract UniqueEntityLoader |
buildBatchingLoader(OuterJoinLoadable persister,
int batchSize,
LockOptions lockOptions,
SessionFactoryImplementor factory,
LoadQueryInfluencers influencers) |
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.
|
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.
|
static BatchingEntityLoaderBuilder |
getBuilder(SessionFactoryImplementor factory) |
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 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 abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
Copyright © 2018 JBoss by Red Hat. All rights reserved.