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.SubselectCollectionLoader
- All Implemented Interfaces:
- CollectionInitializer
- public class SubselectCollectionLoader
- extends CollectionLoader
Implements subselect fetching for a collection
- Author:
- Gavin King
Methods inherited from class org.hibernate.loader.OuterJoinLoader |
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getJoinType, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabled, isJoinedFetchEnabledInMapping, isTooDeep, mergeOuterJoins, orderBy, orderBy, selectString, walkCollectionTree, walkEntityTree |
Methods inherited from class org.hibernate.loader.Loader |
applyLocks, bindNamedParameters, bindPositionalParameters, doList, getEntityEagerPropertyFetches, getFactory, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultSet, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntityBatch, loadSingleRow, prepareQueryStatement, preprocessSQL, scroll, upgradeLocks |
SubselectCollectionLoader
public SubselectCollectionLoader(QueryableCollection persister,
String subquery,
Collection entityKeys,
QueryParameters queryParameters,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
initialize
public void initialize(Serializable id,
SessionImplementor session)
throws HibernateException
- Description copied from interface:
CollectionInitializer
- Initialize the given collection
- Specified by:
initialize
in interface CollectionInitializer
- Overrides:
initialize
in class CollectionLoader
- Throws:
HibernateException
whereString
protected StringBuffer whereString(String alias,
String[] columnNames,
int batchSize,
String subquery)
- Description copied from class:
OuterJoinLoader
- Render the where condition for a (batch) load by identifier / collection key
- Overrides:
whereString
in class OuterJoinLoader