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
aliases, collectionOwners, collectionPersisters, collectionSuffixes, 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()
           
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
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getJoinType, getJoinType, getLockModes, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, mergeOuterJoins, orderBy, orderBy, selectString, walkCollectionTree, walkEntityTree, whereString
 
Methods inherited from class org.hibernate.loader.BasicLoader
generateSuffixes, generateSuffixes, getCollectionAliases, 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

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()

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()