net.sf.hibernate.loader
Class BatchingCollectionInitializer

java.lang.Object
  extended bynet.sf.hibernate.loader.BatchingCollectionInitializer
All Implemented Interfaces:
CollectionInitializer

public class BatchingCollectionInitializer
extends Object
implements CollectionInitializer

"Batch" loads collections, using multiple foreign key values in the SQL where clause.

Author:
Gavin King
See Also:
CollectionLoader, OneToManyLoader

Constructor Summary
BatchingCollectionInitializer(CollectionPersister collPersister, int batchSize, Loader batchLoader, int smallBatchSize, Loader smallBatchLoader, Loader nonBatchLoader)
           
 
Method Summary
 void initialize(Serializable id, SessionImplementor session)
          Initialize the given collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchingCollectionInitializer

public BatchingCollectionInitializer(CollectionPersister collPersister,
                                     int batchSize,
                                     Loader batchLoader,
                                     int smallBatchSize,
                                     Loader smallBatchLoader,
                                     Loader nonBatchLoader)
Method Detail

initialize

public void initialize(Serializable id,
                       SessionImplementor session)
                throws SQLException,
                       HibernateException
Description copied from interface: CollectionInitializer
Initialize the given collection

Specified by:
initialize in interface CollectionInitializer
Throws:
SQLException
HibernateException