public class CriteriaJoinWalker extends AbstractEntityJoinWalker
CriteriaLoader
JoinWalker.AssociationInitCallback
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
protected String |
generateRootAlias(String tableName) |
protected String |
generateTableAlias(int n,
PropertyPath path,
Joinable joinable) |
String |
getComment() |
protected JoinType |
getJoinType(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.
|
protected JoinType |
getJoinType(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.
|
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.
|
protected String |
getWithClause(PropertyPath path) |
protected boolean |
hasRestriction(PropertyPath path) |
boolean[] |
includeInResultRow() |
getAlias, getPersister, initAll, initAll, initProjection, isDuplicateAssociation, isJoinedFetchEnabled, isJoinFetchEnabledByProfile, orderBy, toString
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
public CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)
public CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, String alias)
public Type[] getResultTypes()
public String[] getUserAliases()
public boolean[] includeInResultRow()
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
JoinWalker
getJoinType
in class 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 depthJoinType.INNER_JOIN
,
JoinType.LEFT_OUTER_JOIN
, or -1 to indicate no joining.MappingException
- ??protected JoinType getJoinType(AssociationType associationType, FetchMode config, PropertyPath path, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle) throws MappingException
JoinWalker
getJoinType
in class 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.JoinType.INNER_JOIN
,
JoinType.LEFT_OUTER_JOIN
, or -1 to indicate no joining.MappingException
- ??protected String getWhereFragment() throws MappingException
getWhereFragment
in class AbstractEntityJoinWalker
MappingException
protected String generateTableAlias(int n, PropertyPath path, Joinable joinable)
generateTableAlias
in class JoinWalker
protected String generateRootAlias(String tableName)
generateRootAlias
in class JoinWalker
public Set getQuerySpaces()
public String getComment()
getComment
in class AbstractEntityJoinWalker
protected String getWithClause(PropertyPath path)
getWithClause
in class JoinWalker
protected boolean hasRestriction(PropertyPath path)
hasRestriction
in class JoinWalker
Copyright © 2019 JBoss by Red Hat. All rights reserved.