类 AbstractEntityJoinWalker
- java.lang.Object
-
- org.hibernate.loader.JoinWalker
-
- org.hibernate.loader.AbstractEntityJoinWalker
-
public abstract class AbstractEntityJoinWalker extends JoinWalker
Abstract walker for walkers which begin at an entity (criteria queries and entity loaders).- 作者:
- Gavin King
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.loader.JoinWalker
JoinWalker.AssociationInitCallback
-
-
字段概要
-
从类继承的字段 org.hibernate.loader.JoinWalker
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes
-
-
构造器概要
构造器 构造器 说明 AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 StringgetAlias()abstract StringgetComment()LoadablegetPersister()protected StringgetWhereFragment()protected voidinitAll(String whereString, String orderByString, LockOptions lockOptions)protected voidinitAll(String whereString, String orderByString, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback)protected 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 booleanisJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber)protected StringorderBy(List associations, String orderBy)For entities, orderings added by, for example, Criteria#addOrder need to come before the associations' @OrderBy values.StringtoString()-
从类继承的方法 org.hibernate.loader.JoinWalker
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getAssociations, 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, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString
-
-
-
-
构造器详细资料
-
AbstractEntityJoinWalker
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
AbstractEntityJoinWalker
public AbstractEntityJoinWalker(OuterJoinLoadable persister, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers, String alias)
-
-
方法详细资料
-
initAll
protected final void initAll(String whereString, String orderByString, LockOptions lockOptions) throws MappingException
- 抛出:
MappingException
-
initAll
protected final void initAll(String whereString, String orderByString, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback) throws MappingException
- 抛出:
MappingException
-
initProjection
protected final void initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockOptions lockOptions) throws MappingException
- 抛出:
MappingException
-
getWhereFragment
protected String getWhereFragment() throws MappingException
- 抛出:
MappingException
-
isJoinedFetchEnabled
protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle)
The superclass deliberately excludes collections- 覆盖:
isJoinedFetchEnabled在类中JoinWalker
-
isJoinFetchEnabledByProfile
protected final boolean isJoinFetchEnabledByProfile(OuterJoinLoadable persister, PropertyPath path, int propertyNumber)
-
getComment
public abstract String getComment()
-
isDuplicateAssociation
protected boolean isDuplicateAssociation(String foreignKeyTable, String[] foreignKeyColumns)
从类复制的说明:JoinWalkerUsed to detect circularities in the joined graph, note that this method is side-effecty- 覆盖:
isDuplicateAssociation在类中JoinWalker
-
getPersister
public final Loadable getPersister()
-
getAlias
public final String getAlias()
-
orderBy
protected String orderBy(List associations, String orderBy)
For entities, orderings added by, for example, Criteria#addOrder need to come before the associations' @OrderBy values. However, other sub-classes of JoinWalker (BasicCollectionJoinWalker, OneToManyJoinWalker, etc.) still need the other way around. So, override here instead. See HHH-7116.- 覆盖:
orderBy在类中JoinWalker
-
-