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
CollectionInitializer
initialize
in interface CollectionInitializer
HibernateException
public static CollectionInitializer createBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingException
public static CollectionInitializer createBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingException
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.