org.hibernate.loader.collection

Class SubselectCollectionLoader

Implemented Interfaces:
CollectionInitializer

public class SubselectCollectionLoader
extends BasicCollectionLoader

Implements subselect fetching for a collection
Author:
Gavin King

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

SubselectCollectionLoader(QueryableCollection persister, String subquery, Collection entityKeys, QueryParameters queryParameters, Map namedParameterLocMap, SessionFactoryImplementor factory, Map enabledFilters)

Method Summary

int[]
getNamedParameterLocs(String name)
void
initialize(Serializable id, SessionImplementor session)
Initialize the given collection

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

SubselectCollectionLoader

public SubselectCollectionLoader(QueryableCollection persister,
                                 String subquery,
                                 Collection entityKeys,
                                 QueryParameters queryParameters,
                                 Map namedParameterLocMap,
                                 SessionFactoryImplementor factory,
                                 Map enabledFilters)
            throws MappingException

Method Details

getNamedParameterLocs

public int[] getNamedParameterLocs(String name)
Overrides:
getNamedParameterLocs in interface Loader

initialize

public void initialize(Serializable id,
                       SessionImplementor session)
            throws HibernateException
Initialize the given collection
Specified by:
initialize in interface CollectionInitializer
Overrides:
initialize in interface CollectionLoader