org.hibernate.loader.collection
Class OneToManyLoader
java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
org.hibernate.loader.OuterJoinLoader
org.hibernate.loader.collection.OneToManyLoader
- All Implemented Interfaces:
- CollectionInitializer
- Direct Known Subclasses:
- SubselectOneToManyLoader
- public class OneToManyLoader
- extends OuterJoinLoader
- implements CollectionInitializer
Loads one-to-many associations
The collection persister must implement QueryableCOllection. For
other collections, create a customized subclass of Loader.
- Author:
- Gavin King
- See Also:
CollectionLoader
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, whereString |
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 |
OneToManyLoader
public OneToManyLoader(QueryableCollection oneToManyPersister,
SessionFactoryImplementor session,
Map enabledFilters)
throws MappingException
OneToManyLoader
public OneToManyLoader(QueryableCollection oneToManyPersister,
int batchSize,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
OneToManyLoader
public OneToManyLoader(QueryableCollection oneToManyPersister,
int batchSize,
String subquery,
SessionFactoryImplementor factory,
Map enabledFilters)
throws MappingException
isDuplicateAssociation
protected boolean isDuplicateAssociation(Set visitedAssociationKeys,
String foreignKeyTable,
String[] foreignKeyColumns)
- Description copied from class:
OuterJoinLoader
- Used to detect circularities in the joined graph
- Overrides:
isDuplicateAssociation
in class OuterJoinLoader
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
- Throws:
HibernateException
getKeyType
protected Type getKeyType()
toString
public String toString()
- Overrides:
toString
in class Loader
isSubselectLoadingEnabled
protected boolean isSubselectLoadingEnabled()
- Overrides:
isSubselectLoadingEnabled
in class Loader