public class CriteriaJoinWalker extends AbstractEntityJoinWalker
CriteriaLoaderJoinWalker.AssociationInitCallbackaliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes| Constructor and Description |
|---|
CriteriaJoinWalker(OuterJoinLoadable persister,
CriteriaQueryTranslator translator,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
java.lang.String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers) |
CriteriaJoinWalker(OuterJoinLoadable persister,
CriteriaQueryTranslator translator,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
java.lang.String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers,
java.lang.String alias) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
generateRootAlias(java.lang.String tableName) |
protected java.lang.String |
generateTableAlias(int n,
PropertyPath path,
Joinable joinable) |
java.lang.String |
getComment() |
protected JoinType |
getJoinType(AssociationType associationType,
FetchMode config,
PropertyPath path,
java.lang.String lhsTable,
java.lang.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,
java.lang.String lhsTable,
java.lang.String[] lhsColumns,
boolean nullable,
int currentDepth)
Determine the appropriate type of join (if any) to use to fetch the
given association.
|
java.util.Set |
getQuerySpaces() |
Type[] |
getResultTypes() |
java.lang.String[] |
getUserAliases() |
protected java.lang.String |
getWhereFragment()
Use the discriminator, to narrow the select to instances
of the queried subclass, also applying any filters.
|
protected java.lang.String |
getWithClause(PropertyPath path) |
protected boolean |
hasRestriction(PropertyPath path) |
boolean[] |
includeInResultRow() |
getAlias, getPersister, initAll, initAll, initProjection, isDuplicateAssociation, isJoinedFetchEnabled, isJoinFetchEnabledByProfile, orderBy, toStringcountCollectionPersisters, 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, whereStringpublic CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, java.lang.String rootEntityName, LoadQueryInfluencers loadQueryInfluencers)
public CriteriaJoinWalker(OuterJoinLoadable persister, CriteriaQueryTranslator translator, SessionFactoryImplementor factory, CriteriaImpl criteria, java.lang.String rootEntityName, LoadQueryInfluencers loadQueryInfluencers, java.lang.String alias)
public Type[] getResultTypes()
public java.lang.String[] getUserAliases()
public boolean[] includeInResultRow()
protected JoinType getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, java.lang.String lhsTable, java.lang.String[] lhsColumns, boolean nullable, int currentDepth) throws MappingException
JoinWalkergetJoinType in class JoinWalkerpersister - 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, java.lang.String lhsTable, java.lang.String[] lhsColumns, boolean nullable, int currentDepth, CascadeStyle cascadeStyle) throws MappingException
JoinWalkergetJoinType in class JoinWalkerassociationType - 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 java.lang.String getWhereFragment()
throws MappingException
getWhereFragment in class AbstractEntityJoinWalkerMappingExceptionprotected java.lang.String generateTableAlias(int n,
PropertyPath path,
Joinable joinable)
generateTableAlias in class JoinWalkerprotected java.lang.String generateRootAlias(java.lang.String tableName)
generateRootAlias in class JoinWalkerpublic java.util.Set getQuerySpaces()
public java.lang.String getComment()
getComment in class AbstractEntityJoinWalkerprotected java.lang.String getWithClause(PropertyPath path)
getWithClause in class JoinWalkerprotected boolean hasRestriction(PropertyPath path)
hasRestriction in class JoinWalkerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.