Top Description Fields Constructors Methods
org.hibernate.query.results

public Class TableGroupImpl

extends AbstractTableGroup
Class Inheritance
Imports
java.util.Collections, .List, java.util.function.Consumer, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.tree.from.AbstractTableGroup, .TableReference, .TableReferenceJoin

A TableGroup created with regards to a SQL ResultSet mapping
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final TableReference

Constructor Summary

AccessConstructor and Description
public
TableGroupImpl(NavigablePath navigablePath, String alias, TableReference primaryTableReference, ModelPartContainer container)

Method Summary

Modifier and TypeMethod and Description
public void
public String
getGroupAlias()

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

Implements org.hibernate.sql.ast.tree.from.TableGroup.getGroupAlias.

If we want to use CTE for TableGroup rendering we will need to know the alias we can use for the group
public TableReference
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.AbstractColumnReferenceQualifier.getTableReference.

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

Returns the table reference for the table expression, or null if not found.
public List<TableReferenceJoin>
Inherited from org.hibernate.sql.ast.tree.from.AbstractTableGroup:
addNestedTableGroupJoinaddTableGroupJoincanUseInnerJoinsgetExpressionTypegetModelPartgetNavigablePathgetNestedTableGroupJoinsgetSessionFactorygetSourceAliasgetSqlAliasBasegetTableGroupJoinsisRealTableGroupprependTableGroupJointoStringvisitNestedTableGroupJoinsvisitTableGroupJoins

Field Detail

primaryTableReferenceback to summary
private final TableReference primaryTableReference

Constructor Detail

TableGroupImplback to summary
public TableGroupImpl(NavigablePath navigablePath, String alias, TableReference primaryTableReference, ModelPartContainer container)

Method Detail

applyAffectedTableNamesback to summary
public void applyAffectedTableNames(Consumer<String> nameCollector)

Implements org.hibernate.sql.ast.tree.from.TableGroup.applyAffectedTableNames.

Annotations
@Override
getGroupAliasback to summary
public String getGroupAlias()

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

Implements org.hibernate.sql.ast.tree.from.TableGroup.getGroupAlias.

Doc from org.hibernate.sql.ast.tree.from.TableGroup.getGroupAlias.

If we want to use CTE for TableGroup rendering we will need to know the alias we can use for the group

Annotations
@Override
getPrimaryTableReferenceback to summary
public TableReference getPrimaryTableReference()

Implements abstract org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier.getPrimaryTableReference.

Implements org.hibernate.sql.ast.tree.from.TableGroup.getPrimaryTableReference.

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

Overrides org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier.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
getTableReferenceJoinsback to summary
public List<TableReferenceJoin> getTableReferenceJoins()

Implements abstract org.hibernate.sql.ast.tree.from.AbstractColumnReferenceQualifier.getTableReferenceJoins.

Implements org.hibernate.sql.ast.tree.from.TableGroup.getTableReferenceJoins.

Annotations
@Override