Package org.hibernate.loader
Class AbstractEntityJoinWalker
java.lang.Object
org.hibernate.loader.JoinWalker
org.hibernate.loader.AbstractEntityJoinWalker
- Direct Known Subclasses:
CascadeEntityJoinWalker,CriteriaJoinWalker,EntityJoinWalker
Abstract walker for walkers which begin at an entity (criteria
queries and entity loaders).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.loader.JoinWalker
JoinWalker.AssociationInitCallback -
Field Summary
Fields inherited from class org.hibernate.loader.JoinWalker
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias) -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringgetAlias()abstract Stringprotected final Loadableprotected Stringprotected final voidinitAll(String whereString, String orderByString, LockOptions lockOptions) protected final voidinitAll(String whereString, String orderByString, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback) protected final voidinitProjection(String projectionString, String whereString, String orderByString, String groupByString, LockOptions lockOptions) protected booleanisDuplicateAssociation(String foreignKeyTable, String[] foreignKeyColumns) Used to detect circularities in the joined graph, note that this method is side-effectyprotected booleanisJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle) The superclass deliberately excludes collectionsprotected final booleanisJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber) 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, hasRestriction, initPersisters, initPersisters, initPersisters, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString
-
Constructor Details
-
AbstractEntityJoinWalker
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) -
AbstractEntityJoinWalker
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias)
-
-
Method Details
-
initAll
protected final void initAll(String whereString, String orderByString, LockOptions lockOptions) throws MappingException - Throws:
MappingException
-
initAll
protected final void initAll(String whereString, String orderByString, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback) throws MappingException - Throws:
MappingException
-
initProjection
protected final void initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockOptions lockOptions) throws MappingException - Throws:
MappingException
-
getWhereFragment
- Throws:
MappingException
-
isJoinedFetchEnabled
protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle) The superclass deliberately excludes collections- Overrides:
isJoinedFetchEnabledin classJoinWalker
-
isJoinFetchEnabledByProfile
protected final boolean isJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber) -
getComment
-
isDuplicateAssociation
Description copied from class:JoinWalkerUsed to detect circularities in the joined graph, note that this method is side-effecty- Overrides:
isDuplicateAssociationin classJoinWalker
-
getPersister
-
getAlias
-
toString
-