Top Description Fields Constructors Methods
org.hibernate.sql.ast.tree.from

public Class CollectionTableGroup

extends StandardTableGroup
implements PluralTableGroup
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.ast.tree.from.PluralTableGroup, org.hibernate.sql.ast.tree.from.TableGroup, org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.query.sqm.sql.internal.SqmPathInterpretation, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.sql.ast.spi.SqlSelectionProducer, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier
Imports
java.util.function.BiFunction, .Predicate, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.spi.SqlAliasBase

A table group for collection tables of plural attributes.
Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private TableGroup
private TableGroup

Constructor Summary

AccessConstructor and Description
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)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public TableGroup
public TableGroup
public PluralAttributeMapping
public TableReference
getTableReference(NavigablePath
The path for which to look up the table reference, may be null
navigablePath
,
String
The table expression for which to look up the table reference
tableExpression
,
boolean
Whether to potentially create table reference joins for this table group
resolve
)

Overrides org.hibernate.sql.ast.tree.from.StandardTableGroup.getTableReference.

Implements org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier.getTableReference.

Returns the table reference for the table expression, or null if not found.
public void
public void
registerElementTableGroup(TableGroupJoin elementTableGroupJoin, boolean nested)

public void
public void
registerIndexTableGroup(TableGroupJoin indexTableGroupJoin, boolean nested)

Inherited from org.hibernate.sql.ast.tree.from.StandardTableGroup:
addTableReferenceJoinapplyAffectedTableNamesgetPrimaryTableReferencegetTableReferenceJoinsisFetchedisRealTableGrouppotentiallyCreateTableReference

Field Detail

elementTableGroupback to summary
private TableGroup elementTableGroup
indexTableGroupback to summary
private TableGroup indexTableGroup

Constructor Detail

CollectionTableGroupback to summary
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)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

getElementTableGroupback to summary
public TableGroup getElementTableGroup()

Implements org.hibernate.sql.ast.tree.from.PluralTableGroup.getElementTableGroup.

Annotations
@Override
getIndexTableGroupback to summary
public TableGroup getIndexTableGroup()

Implements org.hibernate.sql.ast.tree.from.PluralTableGroup.getIndexTableGroup.

Annotations
@Override
getModelPartback to summary
public PluralAttributeMapping getModelPart()

Overrides org.hibernate.sql.ast.tree.from.AbstractTableGroup.getModelPart.

Implements org.hibernate.sql.ast.tree.from.PluralTableGroup.getModelPart, org.hibernate.sql.ast.tree.from.TableGroup.getModelPart.

Annotations
@Override
getTableReferenceback to summary
public TableReference getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)

Overrides org.hibernate.sql.ast.tree.from.StandardTableGroup.getTableReference.

Implements org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier.getTableReference.

Doc from org.hibernate.sql.ast.tree.from.ColumnReferenceQualifier.getTableReference.

Returns the table reference for the table expression, or null if not found.

Parameters
navigablePath:NavigablePath

The path for which to look up the table reference, may be null

tableExpression:String

The table expression for which to look up the table reference

resolve:boolean

Whether to potentially create table reference joins for this table group

Annotations
@Override
registerElementTableGroupback to summary
public void registerElementTableGroup(TableGroupJoin elementTableGroupJoin)
registerElementTableGroupback to summary
public void registerElementTableGroup(TableGroupJoin elementTableGroupJoin, boolean nested)
registerIndexTableGroupback to summary
public void registerIndexTableGroup(TableGroupJoin indexTableGroupJoin)
registerIndexTableGroupback to summary
public void registerIndexTableGroup(TableGroupJoin indexTableGroupJoin, boolean nested)