org.hibernate.loader
Class AbstractEntityLoader

java.lang.Object
  extended byorg.hibernate.loader.Loader
      extended byorg.hibernate.loader.BasicLoader
          extended byorg.hibernate.loader.OuterJoinLoader
              extended byorg.hibernate.loader.AbstractEntityLoader
Direct Known Subclasses:
CriteriaLoader, EntityLoader

public abstract class AbstractEntityLoader
extends OuterJoinLoader

Abstract superclass for entity loaders that use outer joins

Author:
Gavin King
See Also:
CriteriaLoader, EntityLoader

Field Summary
 
Fields inherited from class org.hibernate.loader.OuterJoinLoader
lockModeArray, ownerAssociationType, owners, persisters, sql, suffixes
 
Fields inherited from class org.hibernate.loader.BasicLoader
NO_SUFFIX
 
Constructor Summary
AbstractEntityLoader(OuterJoinLoadable persister, SessionFactoryImplementor factory, Map enabledFilters)
           
 
Method Summary
protected  String getAlias()
           
protected  String[] getAliases()
          Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading
protected  int getCollectionOwner()
          Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie.
protected  CollectionPersister getCollectionPersister()
          An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
abstract  String getComment()
           
protected  Loadable getPersister()
           
protected  String getWhereFragment()
          Don't bother with the discriminator, unless overridded by subclass
protected  void initAll(String whereString, String orderByString, LockMode lockMode)
           
protected  void initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockMode lockMode)
           
protected  boolean isJoinedFetchEnabled(AssociationType type, FetchMode config)
          The superclass deliberately excludes collections
 String toString()
           
 
Methods inherited from class org.hibernate.loader.OuterJoinLoader
containsCollectionPersister, countEntityPersisters, generateRootAlias, generateTableAlias, getDialect, getEnabledFilters, getEntityPersisters, getJoinType, getJoinType, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, mergeOuterJoins, selectString, walkCollectionTree, walkEntityTree, whereString
 
Methods inherited from class org.hibernate.loader.BasicLoader
generateSuffixes, getEntityAliases, postInstantiate
 
Methods inherited from class org.hibernate.loader.Loader
applyLocks, bindNamedParameters, bindPositionalParameters, doList, getEntityEagerPropertyFetches, getFactory, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultSet, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, isSubselectLoadingEnabled, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntityBatch, loadSingleRow, prepareQueryStatement, preprocessSQL, scroll, upgradeLocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEntityLoader

public AbstractEntityLoader(OuterJoinLoadable persister,
                            SessionFactoryImplementor factory,
                            Map enabledFilters)
Method Detail

getAliases

protected String[] getAliases()
Description copied from class: Loader
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading

Overrides:
getAliases in class Loader

initAll

protected final void initAll(String whereString,
                             String orderByString,
                             LockMode lockMode)
                      throws MappingException
Throws:
MappingException

initProjection

protected final void initProjection(String projectionString,
                                    String whereString,
                                    String orderByString,
                                    String groupByString,
                                    LockMode lockMode)
                             throws MappingException
Throws:
MappingException

getWhereFragment

protected String getWhereFragment()
                           throws MappingException
Don't bother with the discriminator, unless overridded by subclass

Throws:
MappingException

getPersister

protected final Loadable getPersister()

getAlias

protected final String getAlias()

getCollectionPersister

protected final CollectionPersister getCollectionPersister()
Description copied from class: Loader
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value

Overrides:
getCollectionPersister in class Loader

getCollectionOwner

protected final int getCollectionOwner()
Description copied from class: Loader
Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. in the case of a collection initializer) or no collection.

Overrides:
getCollectionOwner in class Loader

isJoinedFetchEnabled

protected boolean isJoinedFetchEnabled(AssociationType type,
                                       FetchMode config)
The superclass deliberately excludes collections

Overrides:
isJoinedFetchEnabled in class OuterJoinLoader

toString

public String toString()
Overrides:
toString in class Loader

getComment

public abstract String getComment()