Package org.hibernate.sql.ast.tree.cte
Class CteTableGroup
java.lang.Object
org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier
org.hibernate.sql.ast.tree.from.AbstractTableGroup
org.hibernate.sql.ast.tree.cte.CteTableGroup
- All Implemented Interfaces:
DomainResultProducer,SqmPathInterpretation,SqlSelectionProducer,Expression,ColumnReferenceQualifier,TableGroup,SqlAstNode
Wraps a
NamedTableReference representing the CTE and adapts it to
TableGroup for use in SQL AST-
Constructor Summary
ConstructorsConstructorDescriptionCteTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, SqlAliasBase sqlAliasBase, ModelPartContainer modelPartContainer, NamedTableReference cteTableReference, Set<String> compatibleTableExpressions) CteTableGroup(NamedTableReference cteTableReference) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAffectedTableNames(Consumer<String> nameCollector) If we want to use CTE for TableGroup rendering we will need to know the alias we can use for the groupgetTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve) Returns the table reference for the table expression, or null if not found.Methods inherited from class org.hibernate.sql.ast.tree.from.AbstractTableGroup
addNestedTableGroupJoin, addTableGroupJoin, canUseInnerJoins, getExpressionType, getModelPart, getNavigablePath, getNestedTableGroupJoins, getSessionFactory, getSourceAlias, getSqlAliasBase, getTableGroupJoins, isRealTableGroup, prependTableGroupJoin, toString, visitNestedTableGroupJoins, visitTableGroupJoinsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
getTableReference, getTableReference, getTableReference, resolveTableReference, resolveTableReference, resolveTableReferenceMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReferenceMethods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getAffectedTableName, getSqlExpressionMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroup
accept, applySqlSelections, createDomainResult, findCompatibleJoin, findCompatibleJoinedGroup, findTableGroupJoin, findTableReference, hasRealJoins, isFetched, isInitialized, isLateral, isVirtual
-
Constructor Details
-
CteTableGroup
-
-
Method Details
-
getGroupAlias
Description copied from interface:TableGroupIf we want to use CTE for TableGroup rendering we will need to know the alias we can use for the group- Specified by:
getGroupAliasin interfaceTableGroup- Overrides:
getGroupAliasin classAbstractTableGroup
-
applyAffectedTableNames
-
getPrimaryTableReference
- Specified by:
getPrimaryTableReferencein interfaceTableGroup- Specified by:
getPrimaryTableReferencein classAbstractColumnReferenceQualifier
-
getTableReferenceJoins
- Specified by:
getTableReferenceJoinsin interfaceTableGroup- Specified by:
getTableReferenceJoinsin classAbstractColumnReferenceQualifier
-