public class BatchingCollectionInitializer extends Object implements CollectionInitializer
BasicCollectionLoader,
OneToManyLoader| Constructor and Description |
|---|
BatchingCollectionInitializer(CollectionPersister collPersister,
int[] batchSizes,
Loader[] loaders) |
| Modifier and Type | Method and Description |
|---|---|
static CollectionInitializer |
createBatchingCollectionInitializer(QueryableCollection persister,
int maxBatchSize,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
static CollectionInitializer |
createBatchingOneToManyInitializer(QueryableCollection persister,
int maxBatchSize,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
int[] |
getBatchSizes() |
CollectionPersister |
getCollectionPersister() |
Loader[] |
getLoaders() |
void |
initialize(Serializable id,
SessionImplementor session)
Initialize the given collection
|
public BatchingCollectionInitializer(CollectionPersister collPersister, int[] batchSizes, Loader[] loaders)
public CollectionPersister getCollectionPersister()
public Loader[] getLoaders()
public int[] getBatchSizes()
public void initialize(Serializable id, SessionImplementor session) throws HibernateException
CollectionInitializerinitialize in interface CollectionInitializerHibernateExceptionpublic static CollectionInitializer createBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingExceptionpublic static CollectionInitializer createBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.