org.hibernate.loader.collection
Class SubselectOneToManyLoader
java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
org.hibernate.loader.OuterJoinLoader
org.hibernate.loader.collection.OneToManyLoader
org.hibernate.loader.collection.SubselectOneToManyLoader
- All Implemented Interfaces:
- CollectionInitializer
- public class SubselectOneToManyLoader
- extends OneToManyLoader
Implements subselect fetching for a one to many association
- Author:
- Gavin King
Methods inherited from class org.hibernate.loader.OuterJoinLoader |
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getJoinType, getJoinType, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initPersisters, 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 |
SubselectOneToManyLoader
public SubselectOneToManyLoader(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 OneToManyLoader
- 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