org.hibernate.loader
Class AbstractEntityJoinWalker

java.lang.Object
  extended by org.hibernate.loader.JoinWalker
      extended by org.hibernate.loader.AbstractEntityJoinWalker
Direct Known Subclasses:
CascadeEntityJoinWalker, CriteriaJoinWalker, EntityJoinWalker

public abstract class AbstractEntityJoinWalker
extends JoinWalker

Abstract walker for walkers which begin at an entity (criteria queries and entity loaders).

Author:
Gavin King

Field Summary
 
Fields inherited from class org.hibernate.loader.JoinWalker
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes
 
Constructor Summary
AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
           
AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias)
           
 
Method Summary
protected  String getAlias()
           
abstract  String getComment()
           
protected  Loadable getPersister()
           
protected  String getWhereFragment()
           
protected  void initAll(String whereString, String orderByString, LockOptions lockOptions)
           
protected  void initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockOptions lockOptions)
           
protected  boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle)
          The superclass deliberately excludes collections
protected  boolean isJoinFetchEnabledByProfile(OuterJoinLoadable persister, String path, int propertyNumber)
           
 String toString()
           
 
Methods inherited from class org.hibernate.loader.JoinWalker
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getFactory, getJoinType, getJoinType, getJoinType, getLoadQueryInfluencers, getLockModeArray, getLockModeOptions, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, getWithClause, initPersisters, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEntityJoinWalker

public AbstractEntityJoinWalker(OuterJoinLoadable persister,
                                SessionFactoryImplementor factory,
                                LoadQueryInfluencers loadQueryInfluencers)

AbstractEntityJoinWalker

public AbstractEntityJoinWalker(OuterJoinLoadable persister,
                                SessionFactoryImplementor factory,
                                LoadQueryInfluencers loadQueryInfluencers,
                                String alias)
Method Detail

initAll

protected final void initAll(String whereString,
                             String orderByString,
                             LockOptions lockOptions)
                      throws MappingException
Throws:
MappingException

initProjection

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

getWhereFragment

protected String getWhereFragment()
                           throws MappingException
Throws:
MappingException

isJoinedFetchEnabled

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

Overrides:
isJoinedFetchEnabled in class JoinWalker

isJoinFetchEnabledByProfile

protected final boolean isJoinFetchEnabledByProfile(OuterJoinLoadable persister,
                                                    String path,
                                                    int propertyNumber)

getComment

public abstract String getComment()

getPersister

protected final Loadable getPersister()

getAlias

protected final String getAlias()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.