org.hibernate.loader.entity
Class BatchingEntityLoaderBuilder
java.lang.Object
org.hibernate.loader.entity.BatchingEntityLoaderBuilder
- Direct Known Subclasses:
- DynamicBatchingEntityLoaderBuilder, LegacyBatchingEntityLoaderBuilder
public abstract class BatchingEntityLoaderBuilder
- extends Object
The contract for building 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.
- See Also:
BatchFetchStyle
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchingEntityLoaderBuilder
public 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.
- Parameters:
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
- Returns:
- The loader.
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.
- Parameters:
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
- Returns:
- The loader.
buildBatchingLoader
protected abstract UniqueEntityLoader buildBatchingLoader(OuterJoinLoadable persister,
int batchSize,
LockOptions lockOptions,
SessionFactoryImplementor factory,
LoadQueryInfluencers influencers)
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.