org.hibernate.loader.entity
Class BatchingEntityLoaderBuilder

java.lang.Object
  extended by 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

Constructor Summary
BatchingEntityLoaderBuilder()
           
 
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
 

Constructor Detail

BatchingEntityLoaderBuilder

public BatchingEntityLoaderBuilder()
Method Detail

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 persister
batchSize - The maximum number of ids to batch-fetch at once
lockMode - The lock mode
factory - The SessionFactory
influencers - 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 persister
batchSize - The maximum number of ids to batch-fetch at once
lockOptions - The lock options
factory - The SessionFactory
influencers - 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-2015 Red Hat, Inc. All Rights Reserved.