org.hibernate.loader.collection

Class BasicCollectionLoader

Implemented Interfaces:
CollectionInitializer
Known Direct Subclasses:
SubselectCollectionLoader

public class BasicCollectionLoader
extends CollectionLoader

Loads a collection of values or a many-to-many association.
The collection persister must implement QueryableCOllection. For other collections, create a customized subclass of Loader.
Author:
Gavin King
See Also:
OneToManyLoader

Field Summary

Fields inherited from class org.hibernate.loader.OuterJoinLoader

aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes

Fields inherited from class org.hibernate.loader.BasicLoader

NO_SUFFIX

Constructor Summary

BasicCollectionLoader(QueryableCollection collectionPersister, int batchSize, String subquery, SessionFactoryImplementor factory, Map enabledFilters)
BasicCollectionLoader(QueryableCollection collectionPersister, int batchSize, SessionFactoryImplementor factory, Map enabledFilters)
BasicCollectionLoader(QueryableCollection collectionPersister, SessionFactoryImplementor session, Map enabledFilters)

Method Summary

Methods inherited from class org.hibernate.loader.collection.CollectionLoader

getKeyType, initialize, isSubselectLoadingEnabled, toString

Methods inherited from class org.hibernate.loader.OuterJoinLoader

getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker

Methods inherited from class org.hibernate.loader.BasicLoader

generateSuffixes, generateSuffixes, getCollectionAliases, getCollectionSuffixes, getEntityAliases, getSuffixes, postInstantiate

Methods inherited from class org.hibernate.loader.Loader

applyLocks, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, doList, getAliases, getCollectionAliases, getCollectionOwners, getCollectionPersisters, getEntityAliases, getEntityEagerPropertyFetches, getEntityPersisters, getFactory, getLockModes, getNamedParameterLocs, getOwnerAssociationTypes, getOwners, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultSet, getSQLString, hasSubselectLoadableCollections, isSingleRowLoader, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, postInstantiate, prepareQueryStatement, preprocessSQL, scroll, toString, upgradeLocks

Constructor Details

BasicCollectionLoader

protected BasicCollectionLoader(QueryableCollection collectionPersister,
                                int batchSize,
                                String subquery,
                                SessionFactoryImplementor factory,
                                Map enabledFilters)
            throws MappingException

BasicCollectionLoader

public BasicCollectionLoader(QueryableCollection collectionPersister,
                             int batchSize,
                             SessionFactoryImplementor factory,
                             Map enabledFilters)
            throws MappingException

BasicCollectionLoader

public BasicCollectionLoader(QueryableCollection collectionPersister,
                             SessionFactoryImplementor session,
                             Map enabledFilters)
            throws MappingException