Package org.hibernate.loader.collection
Class SubselectCollectionLoader
- java.lang.Object
-
- org.hibernate.loader.Loader
-
- org.hibernate.loader.BasicLoader
-
- org.hibernate.loader.OuterJoinLoader
-
- org.hibernate.loader.collection.CollectionLoader
-
- org.hibernate.loader.collection.BasicCollectionLoader
-
- org.hibernate.loader.collection.SubselectCollectionLoader
-
- All Implemented Interfaces:
CollectionInitializer
public class SubselectCollectionLoader extends BasicCollectionLoader
Implements subselect fetching for a collection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.loader.Loader
Loader.SqlStatementWrapper
-
-
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
-
Fields inherited from class org.hibernate.loader.Loader
DEBUG_ENABLED, SELECT, SELECT_DISTINCT
-
-
Constructor Summary
Constructors Constructor Description SubselectCollectionLoader(QueryableCollection persister, java.lang.String subquery, java.util.Collection entityKeys, QueryParameters queryParameters, java.util.Map<java.lang.String,int[]> namedParameterLocMap, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getNamedParameterLocs(java.lang.String name)
void
initialize(java.io.Serializable id, SharedSessionContractImplementor session)
Initialize the given collection-
Methods inherited from class org.hibernate.loader.collection.CollectionLoader
collectionPersister, getKeyType, isSubselectLoadingEnabled, toString
-
Methods inherited from class org.hibernate.loader.OuterJoinLoader
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockModes, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker
-
Methods inherited from class org.hibernate.loader.BasicLoader
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
-
Methods inherited from class org.hibernate.loader.Loader
applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getLimitHandler, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, hasSubselectLoadableCollections, includeInResultRow, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, resolveResultTransformer, scroll, shouldUseFollowOnLocking, upgradeLocks
-
-
-
-
Constructor Detail
-
SubselectCollectionLoader
public SubselectCollectionLoader(QueryableCollection persister, java.lang.String subquery, java.util.Collection entityKeys, QueryParameters queryParameters, java.util.Map<java.lang.String,int[]> namedParameterLocMap, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
- Throws:
MappingException
-
-
Method Detail
-
initialize
public void initialize(java.io.Serializable id, SharedSessionContractImplementor session) throws HibernateException
Description copied from interface:CollectionInitializer
Initialize the given collection- Specified by:
initialize
in interfaceCollectionInitializer
- Overrides:
initialize
in classCollectionLoader
- Throws:
HibernateException
-
getNamedParameterLocs
public int[] getNamedParameterLocs(java.lang.String name)
- Overrides:
getNamedParameterLocs
in classLoader
-
-