org.hibernate.loader

Class AbstractEntityJoinWalker

Known Direct 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, ownerAssociationTypes, owners, persisters, sql, suffixes

Constructor Summary

AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, Map enabledFilters)
AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, Map enabledFilters, String alias)

Method Summary

protected String
getAlias()
abstract String
getComment()
protected Loadable
getPersister()
protected String
getWhereFragment()
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, CascadeStyle cascadeStyle)
The superclass deliberately excludes collections
String
toString()

Methods inherited from class org.hibernate.loader.JoinWalker

countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getFactory, getJoinType, getJoinType, getLockModeArray, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabled, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setLockModeArray, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString

Constructor Details

AbstractEntityJoinWalker

public AbstractEntityJoinWalker(OuterJoinLoadable persister,
                                SessionFactoryImplementor factory,
                                Map enabledFilters)

AbstractEntityJoinWalker

public AbstractEntityJoinWalker(OuterJoinLoadable persister,
                                SessionFactoryImplementor factory,
                                Map enabledFilters,
                                String alias)

Method Details

getAlias

protected final String getAlias()

getComment

public abstract String getComment()

getPersister

protected final Loadable getPersister()

getWhereFragment

protected String getWhereFragment()
            throws MappingException

initAll

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

initProjection

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

isJoinedFetchEnabled

protected boolean isJoinedFetchEnabled(AssociationType type,
                                       FetchMode config,
                                       CascadeStyle cascadeStyle)
The superclass deliberately excludes collections
Overrides:
isJoinedFetchEnabled in interface JoinWalker

toString

public String toString()