Package org.hibernate.sql.ast.tree.from
Class CollectionTableGroup
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier
-
- org.hibernate.sql.ast.tree.from.AbstractTableGroup
-
- org.hibernate.sql.ast.tree.from.StandardTableGroup
-
- org.hibernate.sql.ast.tree.from.CollectionTableGroup
-
- All Implemented Interfaces:
DomainResultProducer
,SqmPathInterpretation
,SqlSelectionProducer
,Expression
,ColumnReferenceQualifier
,PluralTableGroup
,TableGroup
,SqlAstNode
public class CollectionTableGroup extends StandardTableGroup implements PluralTableGroup
A table group for collection tables of plural attributes.
-
-
Constructor Summary
Constructors Constructor Description CollectionTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, PluralAttributeMapping tableGroupProducer, boolean fetched, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, 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.void
registerElementTableGroup(TableGroupJoin elementTableGroupJoin)
void
registerIndexTableGroup(TableGroupJoin indexTableGroupJoin)
-
Methods inherited from class org.hibernate.sql.ast.tree.from.StandardTableGroup
addTableReferenceJoin, applyAffectedTableNames, getPrimaryTableReference, getTableReferenceJoins, isFetched, isRealTableGroup, potentiallyCreateTableReference
-
Methods inherited from class org.hibernate.sql.ast.tree.from.AbstractTableGroup
addNestedTableGroupJoin, addTableGroupJoin, canUseInnerJoins, getExpressionType, getGroupAlias, 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, createDomainResultSqlSelection, createSqlSelection, 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, prependTableGroupJoin, visitNestedTableGroupJoins, visitTableGroupJoins
-
-
-
-
Constructor Detail
-
CollectionTableGroup
public CollectionTableGroup(boolean canUseInnerJoins, NavigablePath navigablePath, PluralAttributeMapping tableGroupProducer, boolean fetched, String sourceAlias, TableReference primaryTableReference, boolean realTableGroup, SqlAliasBase sqlAliasBase, Predicate<String> tableReferenceJoinNameChecker, BiFunction<String,TableGroup,TableReferenceJoin> tableReferenceJoinCreator, 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, 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 classStandardTableGroup
- 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
-
-