Package org.hibernate.sql.ast.tree.from
Class CorrelatedPluralTableGroup
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier
-
- org.hibernate.sql.ast.tree.from.AbstractTableGroup
-
- org.hibernate.sql.ast.tree.from.CorrelatedTableGroup
-
- org.hibernate.sql.ast.tree.from.CorrelatedPluralTableGroup
-
- All Implemented Interfaces:
DomainResultProducer
,SqmPathInterpretation
,SqlSelectionProducer
,Expression
,ColumnReferenceQualifier
,PluralTableGroup
,TableGroup
,SqlAstNode
public class CorrelatedPluralTableGroup extends CorrelatedTableGroup implements PluralTableGroup
A table group for correlated plural attributes.
-
-
Constructor Summary
Constructors Constructor Description CorrelatedPluralTableGroup(TableGroup correlatedTableGroup, SqlAliasBase sqlAliasBase, QuerySpec querySpec, Consumer<Predicate> joinPredicateConsumer, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableGroup
getElementTableGroup()
TableGroup
getIndexTableGroup()
PluralAttributeMapping
getModelPart()
TableReference
getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Returns the table reference for the table expression, or null if not found.TableReference
getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
void
registerElementTableGroup(TableGroupJoin elementTableGroupJoin)
void
registerIndexTableGroup(TableGroupJoin indexTableGroupJoin)
-
Methods inherited from class org.hibernate.sql.ast.tree.from.CorrelatedTableGroup
addNestedTableGroupJoin, addTableGroupJoin, applyAffectedTableNames, findCompatibleJoinedGroup, getCorrelatedTableGroup, getJoinPredicateConsumer, getPrimaryTableReference, getTableReferenceJoins, prependTableGroupJoin
-
Methods inherited from class org.hibernate.sql.ast.tree.from.AbstractTableGroup
canUseInnerJoins, getExpressionType, getGroupAlias, getNavigablePath, getNestedTableGroupJoins, getSessionFactory, getSourceAlias, getSqlAliasBase, getTableGroupJoins, isRealTableGroup, toString, visitNestedTableGroupJoins, visitTableGroupJoins
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, resolveTableReference, resolveTableReference, resolveTableReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.PluralTableGroup
getTableGroup
-
Methods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getExpressionType, getSqlExpression
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroup
accept, addNestedTableGroupJoin, addTableGroupJoin, applyAffectedTableNames, applySqlSelections, canUseInnerJoins, createDomainResult, findCompatibleJoin, findCompatibleJoinedGroup, findTableGroupJoin, getGroupAlias, getNavigablePath, getNestedTableGroupJoins, getPrimaryTableReference, getSourceAlias, getTableGroupJoins, getTableReferenceJoins, hasRealJoins, isFetched, isInitialized, isLateral, isRealTableGroup, isVirtual, prependTableGroupJoin, visitNestedTableGroupJoins, visitTableGroupJoins
-
-
-
-
Constructor Detail
-
CorrelatedPluralTableGroup
public CorrelatedPluralTableGroup(TableGroup correlatedTableGroup, SqlAliasBase sqlAliasBase, QuerySpec querySpec, Consumer<Predicate> joinPredicateConsumer, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getModelPart
public PluralAttributeMapping getModelPart()
- Specified by:
getModelPart
in interfacePluralTableGroup
- Specified by:
getModelPart
in interfaceTableGroup
- Overrides:
getModelPart
in classAbstractTableGroup
-
getElementTableGroup
public TableGroup getElementTableGroup()
- Specified by:
getElementTableGroup
in interfacePluralTableGroup
-
getIndexTableGroup
public TableGroup getIndexTableGroup()
- Specified by:
getIndexTableGroup
in interfacePluralTableGroup
-
registerIndexTableGroup
public void registerIndexTableGroup(TableGroupJoin indexTableGroupJoin)
-
registerElementTableGroup
public void registerElementTableGroup(TableGroupJoin elementTableGroupJoin)
-
getTableReference
public TableReference getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
- Specified by:
getTableReference
in interfaceColumnReferenceQualifier
- Overrides:
getTableReference
in classCorrelatedTableGroup
-
getTableReference
public TableReference getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Description copied from interface:ColumnReferenceQualifier
Returns the table reference for the table expression, or null if not found.- Specified by:
getTableReference
in interfaceColumnReferenceQualifier
- Overrides:
getTableReference
in classCorrelatedTableGroup
- Parameters:
navigablePath
- The path for which to look up the table reference, may be nulltableExpression
- The table expression for which to look up the table referenceresolve
- Whether to potentially create table reference joins for this table group
-
-