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 classStandardTableGroupextendsAbstractTableGroup
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 voidaddTableReferenceJoin(TableReferenceJoin join)voidapplyAffectedTableNames(Consumer<String> nameCollector)TableReferencegetPrimaryTableReference()TableReferencegetTableReference(NavigablePath navigablePath,String tableExpression, boolean resolve)Returns the table reference for the table expression, or null if not found.List<TableReferenceJoin>getTableReferenceJoins()booleanisFetched()booleanisRealTableGroup()protectedTableReferencepotentiallyCreateTableReference(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:
getPrimaryTableReferencein interfaceTableGroup- Specified by:
getPrimaryTableReferencein classAbstractColumnReferenceQualifier
getTableReferenceJoins
public List<TableReferenceJoin> getTableReferenceJoins()
- Specified by:
getTableReferenceJoinsin interfaceTableGroup- Specified by:
getTableReferenceJoinsin classAbstractColumnReferenceQualifier
isRealTableGroup
public boolean isRealTableGroup()
- Specified by:
isRealTableGroupin interfaceTableGroup- Overrides:
isRealTableGroupin 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:ColumnReferenceQualifierReturns the table reference for the table expression, or null if not found.- Specified by:
getTableReferencein interfaceColumnReferenceQualifier- Overrides:
getTableReferencein 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)