org.hibernate.loader.collection
Class DynamicBatchingCollectionInitializerBuilder

java.lang.Object
  extended by org.hibernate.loader.collection.BatchingCollectionInitializerBuilder
      extended by org.hibernate.loader.collection.DynamicBatchingCollectionInitializerBuilder

public class DynamicBatchingCollectionInitializerBuilder
extends BatchingCollectionInitializerBuilder

A BatchingCollectionInitializerBuilder that builds CollectionInitializer instances capable of dynamically building its batch-fetch SQL based on the actual number of collections keys waiting to be fetched.


Nested Class Summary
static class DynamicBatchingCollectionInitializerBuilder.DynamicBatchingCollectionInitializer
           
 
Field Summary
static DynamicBatchingCollectionInitializerBuilder INSTANCE
           
 
Constructor Summary
DynamicBatchingCollectionInitializerBuilder()
           
 
Method Summary
protected  CollectionInitializer createRealBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
           
protected  CollectionInitializer createRealBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
           
 
Methods inherited from class org.hibernate.loader.collection.BatchingCollectionInitializerBuilder
createBatchingCollectionInitializer, createBatchingOneToManyInitializer, getBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DynamicBatchingCollectionInitializerBuilder INSTANCE
Constructor Detail

DynamicBatchingCollectionInitializerBuilder

public DynamicBatchingCollectionInitializerBuilder()
Method Detail

createRealBatchingCollectionInitializer

protected CollectionInitializer createRealBatchingCollectionInitializer(QueryableCollection persister,
                                                                        int maxBatchSize,
                                                                        SessionFactoryImplementor factory,
                                                                        LoadQueryInfluencers influencers)
Specified by:
createRealBatchingCollectionInitializer in class BatchingCollectionInitializerBuilder

createRealBatchingOneToManyInitializer

protected CollectionInitializer createRealBatchingOneToManyInitializer(QueryableCollection persister,
                                                                       int maxBatchSize,
                                                                       SessionFactoryImplementor factory,
                                                                       LoadQueryInfluencers influencers)
Specified by:
createRealBatchingOneToManyInitializer in class BatchingCollectionInitializerBuilder


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.