Package org.hibernate.sql.ast.tree.from
Class StandardTableGroup
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier
-
- org.hibernate.sql.ast.tree.from.AbstractTableGroup
-
- org.hibernate.sql.ast.tree.from.StandardTableGroup
-
- All Implemented Interfaces:
DomainResultProducer
,SqmPathInterpretation
,SqlSelectionProducer
,Expression
,ColumnReferenceQualifier
,TableGroup
,SqlAstNode
- Direct Known Subclasses:
CollectionTableGroup
public class StandardTableGroup extends AbstractTableGroup
-
-
Constructor Summary
Constructors Constructor Description StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, boolean fetched, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, SessionFactoryImplementor sessionFactory)
StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, SessionFactoryImplementor sessionFactory)
StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, String sourceAlias, TableReference primaryTableReference, SqlAliasBase sqlAliasBase, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTableReferenceJoin(TableReferenceJoin join)
void
applyAffectedTableNames(Consumer<String> nameCollector)
TableReference
getPrimaryTableReference()
TableReference
getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Returns the table reference for the table expression, or null if not found.List<TableReferenceJoin>
getTableReferenceJoins()
boolean
isFetched()
boolean
isRealTableGroup()
protected TableReference
potentiallyCreateTableReference(String tableExpression)
-
Methods inherited from class org.hibernate.sql.ast.tree.from.AbstractTableGroup
addNestedTableGroupJoin, addTableGroupJoin, canUseInnerJoins, getExpressionType, getGroupAlias, getModelPart, getNavigablePath, getNestedTableGroupJoins, getSessionFactory, getSourceAlias, getSqlAliasBase, getTableGroupJoins, prependTableGroupJoin, 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, getTableReference, resolveTableReference, resolveTableReference, resolveTableReference
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getSqlExpression
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroup
accept, applySqlSelections, createDomainResult, findCompatibleJoin, findCompatibleJoinedGroup, findTableGroupJoin, hasRealJoins, isInitialized, isLateral, isVirtual
-
-
-
-
Constructor Detail
-
StandardTableGroup
public StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, String sourceAlias, TableReference primaryTableReference, SqlAliasBase sqlAliasBase, SessionFactoryImplementor sessionFactory)
-
StandardTableGroup
public StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, SessionFactoryImplementor sessionFactory)
-
StandardTableGroup
public StandardTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, TableGroupProducer tableGroupProducer, boolean fetched, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getPrimaryTableReference
public TableReference getPrimaryTableReference()
- Specified by:
getPrimaryTableReference
in interfaceTableGroup
- Specified by:
getPrimaryTableReference
in classAbstractColumnReferenceQualifier
-
getTableReferenceJoins
public List<TableReferenceJoin> getTableReferenceJoins()
- Specified by:
getTableReferenceJoins
in interfaceTableGroup
- Specified by:
getTableReferenceJoins
in classAbstractColumnReferenceQualifier
-
isRealTableGroup
public boolean isRealTableGroup()
- Specified by:
isRealTableGroup
in interfaceTableGroup
- Overrides:
isRealTableGroup
in classAbstractTableGroup
-
isFetched
public boolean isFetched()
-
addTableReferenceJoin
public void addTableReferenceJoin(TableReferenceJoin join)
-
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 classAbstractColumnReferenceQualifier
- 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
-
potentiallyCreateTableReference
protected TableReference potentiallyCreateTableReference(String tableExpression)
-
-