类 CriteriaJoinWalker
- java.lang.Object
-
- org.hibernate.loader.JoinWalker
-
- org.hibernate.loader.AbstractEntityJoinWalker
-
- org.hibernate.loader.criteria.CriteriaJoinWalker
-
public class CriteriaJoinWalker extends AbstractEntityJoinWalker
A JoinWalker for Criteria queries.- 作者:
- Gavin King
- 另请参阅:
CriteriaLoader
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.loader.JoinWalker
JoinWalker.AssociationInitCallback
-
-
字段概要
-
从类继承的字段 org.hibernate.loader.JoinWalker
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes
-
-
构造器概要
构造器 构造器 说明 CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, String alias)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected StringgenerateRootAlias(String tableName)protected StringgenerateTableAlias(int n, PropertyPath path, Joinable joinable)StringgetComment()protected JoinTypegetJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth)Determine the appropriate type of join (if any) to use to fetch the given association.protected JoinTypegetJoinType(AssociationType associationType, FetchMode config, PropertyPath path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle)Determine the appropriate associationType of join (if any) to use to fetch the given association.SetgetQuerySpaces()Type[]getResultTypes()String[]getUserAliases()protected StringgetWhereFragment()Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.protected StringgetWithClause(PropertyPath path)protected booleanhasRestriction(PropertyPath path)boolean[]includeInResultRow()-
从类继承的方法 org.hibernate.loader.AbstractEntityJoinWalker
getAlias, getPersister, initAll, initAll, initProjection, isDuplicateAssociation, isJoinedFetchEnabled, isJoinFetchEnabledByProfile, orderBy, toString
-
从类继承的方法 org.hibernate.loader.JoinWalker
countCollectionPersisters, countEntityPersisters, getAliases, getAssociations, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getFactory, getJoinType, getLoadQueryInfluencers, getLockModeArray, getLockModeOptions, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, initPersisters, initPersisters, initPersisters, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString
-
-
-
-
构造器详细资料
-
CriteriaJoinWalker
public CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)
-
CriteriaJoinWalker
public CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, String alias)
-
-
方法详细资料
-
getResultTypes
public Type[] getResultTypes()
-
getUserAliases
public String[] getUserAliases()
-
includeInResultRow
public boolean[] includeInResultRow()
-
getJoinType
protected JoinType getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth) throws MappingException
从类复制的说明:JoinWalkerDetermine the appropriate type of join (if any) to use to fetch the given association.- 覆盖:
getJoinType在类中JoinWalker- 参数:
persister- The owner of the association.path- The path to the associationpropertyNumber- The property number representing the association.associationType- The association type.metadataFetchMode- The metadata-defined fetch mode.metadataCascadeStyle- The metadata-defined cascade style.lhsTable- The owner tablelhsColumns- The owner join columnsnullable- Is the association nullable.currentDepth- Current join depth- 返回:
- type of join to use (
JoinType.INNER_JOIN,JoinType.LEFT_OUTER_JOIN, or -1 to indicate no joining. - 抛出:
MappingException- ??
-
getJoinType
protected JoinType getJoinType(AssociationType associationType, FetchMode config, PropertyPath path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle) throws MappingException
从类复制的说明:JoinWalkerDetermine the appropriate associationType of join (if any) to use to fetch the given association.- 覆盖:
getJoinType在类中JoinWalker- 参数:
associationType- The association associationType.config- The metadata-defined fetch mode.path- The path to the associationlhsTable- The owner tablelhsColumns- The owner join columnsnullable- Is the association nullable.currentDepth- Current join depthcascadeStyle- The metadata-defined cascade style.- 返回:
- type of join to use (
JoinType.INNER_JOIN,JoinType.LEFT_OUTER_JOIN, or -1 to indicate no joining. - 抛出:
MappingException- ??
-
getWhereFragment
protected String getWhereFragment() throws MappingException
Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.- 覆盖:
getWhereFragment在类中AbstractEntityJoinWalker- 抛出:
MappingException
-
generateTableAlias
protected String generateTableAlias(int n, PropertyPath path, Joinable joinable)
- 覆盖:
generateTableAlias在类中JoinWalker
-
generateRootAlias
protected String generateRootAlias(String tableName)
- 覆盖:
generateRootAlias在类中JoinWalker
-
getQuerySpaces
public Set getQuerySpaces()
-
getComment
public String getComment()
- 指定者:
getComment在类中AbstractEntityJoinWalker
-
getWithClause
protected String getWithClause(PropertyPath path)
- 覆盖:
getWithClause在类中JoinWalker
-
hasRestriction
protected boolean hasRestriction(PropertyPath path)
- 覆盖:
hasRestriction在类中JoinWalker
-
-