Package org.hibernate.loader.collection
Class BatchingCollectionInitializer
java.lang.Object
org.hibernate.loader.collection.BatchingCollectionInitializer
- All Implemented Interfaces:
CollectionInitializer
"Batch" loads collections, using multiple foreign key values in the
SQL where clause.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBatchingCollectionInitializer(CollectionPersister collPersister, int[] batchSizes, Loader[] loaders) -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionInitializercreateBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) static CollectionInitializercreateBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) int[]Loader[]voidinitialize(Serializable id, SessionImplementor session) Initialize the given collection
-
Constructor Details
-
BatchingCollectionInitializer
public BatchingCollectionInitializer(CollectionPersister collPersister, int[] batchSizes, Loader[] loaders)
-
-
Method Details
-
getCollectionPersister
-
getLoaders
-
getBatchSizes
public int[] getBatchSizes() -
initialize
Description copied from interface:CollectionInitializerInitialize the given collection- Specified by:
initializein interfaceCollectionInitializer- Throws:
HibernateException
-
createBatchingOneToManyInitializer
public static CollectionInitializer createBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException - Throws:
MappingException
-
createBatchingCollectionInitializer
public static CollectionInitializer createBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException - Throws:
MappingException
-