org.hibernate.loader.collection

Class CollectionLoader

Implemented Interfaces:
CollectionInitializer
Known Direct Subclasses:
BasicCollectionLoader, OneToManyLoader

public class CollectionLoader
extends OuterJoinLoader
implements CollectionInitializer

Superclass for loaders that initialize collections
Author:
Gavin King
See Also:
OneToManyLoader, BasicCollectionLoader

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

CollectionLoader(QueryableCollection collectionPersister, SessionFactoryImplementor factory, Map enabledFilters)

Method Summary

protected Type
getKeyType()
void
initialize(Serializable id, SessionImplementor session)
protected boolean
isSubselectLoadingEnabled()
String
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

CollectionLoader

public CollectionLoader(QueryableCollection collectionPersister,
                        SessionFactoryImplementor factory,
                        Map enabledFilters)

Method Details

getKeyType

protected Type getKeyType()

initialize

public void initialize(Serializable id,
                       SessionImplementor session)
            throws HibernateException
Specified by:
initialize in interface CollectionInitializer

isSubselectLoadingEnabled

protected boolean isSubselectLoadingEnabled()
Overrides:
isSubselectLoadingEnabled in interface Loader

toString

public String toString()
Overrides:
toString in interface Loader