当前页面:
在线文档首页 >
Hibernate 3.2.3 正式版 API 英文文档
CriteriaJoinWalker (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档
org.hibernate.loader.criteria
Class 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.
- Author:
- Gavin King
- See Also:
CriteriaLoader
Fields inherited from class org.hibernate.loader.JoinWalker |
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes |
Method Summary |
protected String |
generateRootAlias(String tableName)
|
protected String |
generateTableAlias(int n,
String path,
Joinable joinable)
|
String |
getComment()
|
protected int |
getJoinType(AssociationType type,
FetchMode config,
String path,
String lhsTable,
String[] lhsColumns,
boolean nullable,
int currentDepth,
CascadeStyle cascadeStyle)
Get the join type (inner, outer, etc) or -1 if the
association should not be joined. |
Set |
getQuerySpaces()
|
Type[] |
getResultTypes()
|
String[] |
getUserAliases()
|
protected String |
getWhereFragment()
Use the discriminator, to narrow the select to instances
of the queried subclass, also applying any filters. |
Methods inherited from class org.hibernate.loader.JoinWalker |
countCollectionPersisters, countEntityPersisters, getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getFactory, getJoinType, getLockModeArray, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setLockModeArray, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString |
CriteriaJoinWalker
public CriteriaJoinWalker(OuterJoinLoadable persister,
CriteriaQueryTranslator translator,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
Map enabledFilters)
throws HibernateException
getResultTypes
public Type[] getResultTypes()
getUserAliases
public String[] getUserAliases()
getJoinType
protected int getJoinType(AssociationType type,
FetchMode config,
String path,
String lhsTable,
String[] lhsColumns,
boolean nullable,
int currentDepth,
CascadeStyle cascadeStyle)
throws MappingException
- Description copied from class:
JoinWalker
- Get the join type (inner, outer, etc) or -1 if the
association should not be joined. Override on
subclasses.
- Overrides:
getJoinType
in class JoinWalker
- Throws:
MappingException
getWhereFragment
protected String getWhereFragment()
throws MappingException
- Use the discriminator, to narrow the select to instances
of the queried subclass, also applying any filters.
- Overrides:
getWhereFragment
in class AbstractEntityJoinWalker
- Throws:
MappingException
generateTableAlias
protected String generateTableAlias(int n,
String path,
Joinable joinable)
- Overrides:
generateTableAlias
in class JoinWalker
generateRootAlias
protected String generateRootAlias(String tableName)
- Overrides:
generateRootAlias
in class JoinWalker
getQuerySpaces
public Set getQuerySpaces()
getComment
public String getComment()
- Specified by:
getComment
in class AbstractEntityJoinWalker