Top Description Fields Constructors Methods
org.hibernate.loader

public abstract Class AbstractEntityJoinWalker

extends JoinWalker
Class Inheritance
Known Direct Subclasses
org.hibernate.loader.criteria.CriteriaJoinWalker, org.hibernate.loader.entity.CascadeEntityJoinWalker, org.hibernate.loader.entity.EntityJoinWalker
Imports
java.util.ArrayList, .Arrays, .List, .Iterator, org.hibernate.FetchMode, .MappingException, .LockOptions, org.hibernate.engine.CascadeStyle, .SessionFactoryImplementor, .LoadQueryInfluencers, org.hibernate.engine.profile.FetchProfile, .Fetch, org.hibernate.persister.entity.Loadable, .OuterJoinLoadable, org.hibernate.sql.JoinFragment, .Select, org.hibernate.type.AssociationType

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

Field Summary

Modifier and TypeField and Description
private final String
private final OuterJoinLoadable
Inherited from org.hibernate.loader.JoinWalker:
aliasesassociationscollectionOwnerscollectionPersisterscollectionSuffixeslockModeArraylockOptionsownerAssociationTypesownerspersisterssqlsuffixes

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected final String
public abstract String
protected final Loadable
protected String
protected final void
initAll(final String whereString, final String orderByString, final LockOptions lockOptions)

protected final void
initAll(final String whereString, final String orderByString, final LockOptions lockOptions, final JoinWalker.AssociationInitCallback callback)

protected final void
initProjection(final String projectionString, final String whereString, final String orderByString, final String groupByString, final LockOptions lockOptions)

private void
initStatementString(final String condition, final String orderBy, final LockOptions lockOptions)

private void
initStatementString(final String projection, final String condition, final String orderBy, final String groupBy, final LockOptions lockOptions)

protected boolean
isDuplicateAssociation(final String foreignKeyTable, final String[] foreignKeyColumns)

Overrides org.hibernate.loader.JoinWalker.isDuplicateAssociation.

Used to detect circularities in the joined graph, note that this method is side-effecty
protected boolean
isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle)

Overrides org.hibernate.loader.JoinWalker.isJoinedFetchEnabled.

The superclass deliberately excludes collections
protected final boolean
isJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.loader.JoinWalker:
countCollectionPersisterscountEntityPersistersgenerateRootAliasgenerateTableAliasgetAliasesgetCollectionOwnersgetCollectionPersistersgetCollectionSuffixesgetDialectgetFactorygetJoinTypegetJoinTypegetJoinTypegetLoadQueryInfluencersgetLockModeArraygetLockModeOptionsgetOwnerAssociationTypesgetOwnersgetPersistersgetSQLStringgetSuffixesgetWithClausehasRestrictioninitPersistersinitPersistersinitPersistersisDuplicateAssociationisJoinableisJoinedFetchEnabledInMappingisTooDeepisTooManyCollectionsmergeOrderingsmergeOuterJoinsorderByorderByselectStringsetAliasessetCollectionOwnerssetCollectionPersisterssetCollectionSuffixessetOwnerAssociationTypessetOwnerssetPersisterssetSqlsetSuffixeswalkCollectionTreewalkEntityTreewhereString

Field Detail

aliasback to summary
private final String alias
persisterback to summary
private final OuterJoinLoadable persister

Constructor Detail

AbstractEntityJoinWalkerback to summary
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
AbstractEntityJoinWalkerback to summary
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias)

Method Detail

getAliasback to summary
protected final String getAlias()
getCommentback to summary
public abstract String getComment()
getPersisterback to summary
protected final Loadable getPersister()
getWhereFragmentback to summary
protected String getWhereFragment() throws MappingException
initAllback to summary
protected final void initAll(final String whereString, final String orderByString, final LockOptions lockOptions) throws MappingException
initAllback to summary
protected final void initAll(final String whereString, final String orderByString, final LockOptions lockOptions, final JoinWalker.AssociationInitCallback callback) throws MappingException
initProjectionback to summary
protected final void initProjection(final String projectionString, final String whereString, final String orderByString, final String groupByString, final LockOptions lockOptions) throws MappingException
initStatementStringback to summary
private void initStatementString(final String condition, final String orderBy, final LockOptions lockOptions) throws MappingException
initStatementStringback to summary
private void initStatementString(final String projection, final String condition, final String orderBy, final String groupBy, final LockOptions lockOptions) throws MappingException
isDuplicateAssociationback to summary
protected boolean isDuplicateAssociation(final String foreignKeyTable, final String[] foreignKeyColumns)

Overrides org.hibernate.loader.JoinWalker.isDuplicateAssociation.

Doc from org.hibernate.loader.JoinWalker.isDuplicateAssociation.

Used to detect circularities in the joined graph, note that this method is side-effecty

Annotations
@Override
isJoinedFetchEnabledback to summary
protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle)

Overrides org.hibernate.loader.JoinWalker.isJoinedFetchEnabled.

The superclass deliberately excludes collections

isJoinFetchEnabledByProfileback to summary
protected final boolean isJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.