Uses of Interface
org.hibernate.sql.ast.tree.from.TableReference
Packages that use TableReference
Package
Description
This package abstracts over the multifarious dialects of SQL
understood by the databases supported by Hibernate.
Defines the runtime mapping metamodel, which describes the mapping
of the application's domain model parts (entities, attributes) to
relational database objects (tables, columns).
This package abstracts persistence mechanisms for entities.
Support for multi-table SQM mutation (insert, update, delete) operations using
a table to temporarily hold the matching ids.
Package defining support for creating and consuming a SQL AST.
Support for common table expressions (CTE) in a SQL tree.
AST nodes representing expressions in a SQL tree.
AST nodes representing root tables and joins in a SQL tree.
SQL AST extensions for model mutations.
-
Uses of TableReference in org.hibernate.boot.model.internal
Methods in org.hibernate.boot.model.internal with parameters of type TableReferenceModifier and TypeMethodDescriptionstatic Predicate
SoftDeleteHelper.createNonSoftDeletedRestriction
(TableReference tableReference, SoftDeleteMapping softDeleteMapping) Create a SQL AST Predicate for restricting matches to non-deleted rowsstatic Predicate
SoftDeleteHelper.createNonSoftDeletedRestriction
(TableReference tableReference, SoftDeleteMapping softDeleteMapping, SqlExpressionResolver expressionResolver) Create a SQL AST Predicate for restricting matches to non-deleted rowsstatic Assignment
SoftDeleteHelper.createSoftDeleteAssignment
(TableReference tableReference, SoftDeleteMapping softDeleteMapping) Create a SQL AST Assignment for setting the soft-delete column to its deleted indicate value -
Uses of TableReference in org.hibernate.dialect
Methods in org.hibernate.dialect with parameters of type TableReferenceModifier and TypeMethodDescriptionprotected void
CockroachSqlAstTranslator.renderTableReferenceIdentificationVariable
(TableReference tableReference) protected void
PostgreSQLSqlAstTranslator.renderTableReferenceIdentificationVariable
(TableReference tableReference) -
Uses of TableReference in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return TableReferenceModifier and TypeMethodDescriptiondefault TableReference
EntityMappingType.createPrimaryTableReference
(SqlAliasBase sqlAliasBase, SqlAstCreationState creationState) Methods in org.hibernate.metamodel.mapping with parameters of type TableReferenceModifier and TypeMethodDescriptiondefault TableReferenceJoin
EntityMappingType.createTableReferenceJoin
(String joinTableExpression, SqlAliasBase sqlAliasBase, TableReference lhs, SqlAstCreationState creationState) ForeignKeyDescriptor.generateJoinPredicate
(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState) -
Uses of TableReference in org.hibernate.metamodel.mapping.internal
Methods in org.hibernate.metamodel.mapping.internal that return types with arguments of type TableReferenceModifier and TypeMethodDescriptionCaseStatementDiscriminatorMappingImpl.CaseStatementDiscriminatorExpression.getUsedTableReferences()
Methods in org.hibernate.metamodel.mapping.internal with parameters of type TableReferenceModifier and TypeMethodDescriptionEmbeddedForeignKeyDescriptor.generateJoinPredicate
(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState) SimpleForeignKeyDescriptor.generateJoinPredicate
(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState) -
Uses of TableReference in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return TableReferenceModifier and TypeMethodDescriptionAbstractEntityPersister.createPrimaryTableReference
(SqlAliasBase sqlAliasBase, SqlAstCreationState sqlAstCreationState) Methods in org.hibernate.persister.entity with parameters of type TableReferenceModifier and TypeMethodDescriptionAbstractEntityPersister.createTableReferenceJoin
(String joinTableExpression, SqlAliasBase sqlAliasBase, TableReference lhs, SqlAstCreationState creationState) protected Predicate
AbstractEntityPersister.generateJoinPredicate
(TableReference rootTableReference, TableReference joinedTableReference, String[] pkColumnNames, String[] fkColumnNames, SqlAstCreationState creationState) protected TableReferenceJoin
AbstractEntityPersister.generateTableReferenceJoin
(TableReference lhs, String joinTableExpression, SqlAliasBase sqlAliasBase, boolean innerJoin, String[] targetColumns, SqlAstCreationState creationState) -
Uses of TableReference in org.hibernate.query.results.internal
Methods in org.hibernate.query.results.internal that return TableReferenceModifier and TypeMethodDescriptionTableGroupImpl.getPrimaryTableReference()
TableGroupImpl.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) Methods in org.hibernate.query.results.internal with parameters of type TableReferenceModifier and TypeMethodDescriptionstatic Expression
ResultsHelper.resolveSqlExpression
(DomainResultCreationStateImpl resolver, TableReference tableReference, SelectableMapping selectableMapping, int valuesArrayPosition) static Expression
ResultsHelper.resolveSqlExpression
(DomainResultCreationStateImpl resolver, JdbcValuesMetadata jdbcValuesMetadata, TableReference tableReference, EntityDiscriminatorMapping discriminatorMapping, String columnAlias) static Expression
ResultsHelper.resolveSqlExpression
(DomainResultCreationStateImpl resolver, JdbcValuesMetadata jdbcValuesMetadata, TableReference tableReference, SelectableMapping selectableMapping, String columnAlias) Constructors in org.hibernate.query.results.internal with parameters of type TableReferenceModifierConstructorDescriptionTableGroupImpl
(NavigablePath navigablePath, String alias, TableReference primaryTableReference, ModelPartContainer container) -
Uses of TableReference in org.hibernate.query.sqm.mutation.internal
Method parameters in org.hibernate.query.sqm.mutation.internal with type arguments of type TableReferenceModifier and TypeMethodDescriptionstatic void
SqmMutationStrategyHelper.cleanUpCollectionTables
(EntityMappingType entityDescriptor, BiFunction<TableReference, PluralAttributeMapping, Predicate> restrictionProducer, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) -
Uses of TableReference in org.hibernate.query.sqm.mutation.internal.cte
Methods in org.hibernate.query.sqm.mutation.internal.cte with parameters of type TableReferenceModifier and TypeMethodDescriptionprotected NamedTableReference
AbstractCteMutationHandler.resolveUnionTableReference
(TableReference tableReference, String tableExpression) protected NamedTableReference
CteInsertHandler.resolveUnionTableReference
(TableReference tableReference, String tableExpression) -
Uses of TableReference in org.hibernate.query.sqm.mutation.internal.inline
Methods in org.hibernate.query.sqm.mutation.internal.inline with parameters of type TableReferenceModifier and TypeMethodDescriptionInPredicateRestrictionProducer.produceRestriction
(List<Expression> matchingIdValueExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext) MatchingIdRestrictionProducer.produceRestriction
(List<Expression> idExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext) Produce the restriction predicate -
Uses of TableReference in org.hibernate.query.sqm.mutation.internal.temptable
Methods in org.hibernate.query.sqm.mutation.internal.temptable that return TableReferenceModifier and TypeMethodDescriptionprotected TableReference
UpdateExecutionDelegate.resolveTableReference
(ColumnReference columnReference, Map<String, TableReference> tableReferenceByAlias) Methods in org.hibernate.query.sqm.mutation.internal.temptable that return types with arguments of type TableReferenceModifier and TypeMethodDescriptionprotected Map<TableReference,
List<Assignment>> UpdateExecutionDelegate.getAssignmentsByTable()
Methods in org.hibernate.query.sqm.mutation.internal.temptable with parameters of type TableReferenceModifier and TypeMethodDescriptionprotected void
TableBasedUpdateHandler.collectTableReference
(TableReference tableReference, BiConsumer<String, TableReference> consumer) static QuerySpec
ExecuteWithoutIdTableHelper.createIdMatchingSubQuerySpec
(NavigablePath navigablePath, TableReference rootTableReference, Predicate predicate, EntityPersister rootEntityPersister, SqlExpressionResolver sqlExpressionResolver, SessionFactoryImplementor sessionFactory) protected NamedTableReference
UpdateExecutionDelegate.resolveUnionTableReference
(TableReference tableReference, String tableExpression) Method parameters in org.hibernate.query.sqm.mutation.internal.temptable with type arguments of type TableReferenceModifier and TypeMethodDescriptionTableBasedInsertHandler.buildExecutionDelegate
(SqmInsertStatement<?> sqmInsert, MultiTableSqmMutationConverter sqmConverter, TemporaryTable entityTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor, String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup insertingTableGroup, Map<String, TableReference> tableReferenceByAlias, List<Assignment> assignments, InsertSelectStatement insertStatement, ConflictClause conflictClause, JdbcParameter sessionUidParameter, DomainQueryExecutionContext executionContext) For Hibernate Reactiveprotected UpdateExecutionDelegate
TableBasedUpdateHandler.buildExecutionDelegate
(MultiTableSqmMutationConverter sqmConverter, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor, String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup updatingTableGroup, Map<String, TableReference> tableReferenceByAlias, List<Assignment> assignments, Predicate suppliedPredicate, DomainQueryExecutionContext executionContext) protected void
TableBasedUpdateHandler.collectTableReference
(TableReferenceJoin tableReferenceJoin, BiConsumer<String, TableReference> consumer) protected void
TableBasedUpdateHandler.collectTableReference
(TableReference tableReference, BiConsumer<String, TableReference> consumer) protected TableReference
UpdateExecutionDelegate.resolveTableReference
(ColumnReference columnReference, Map<String, TableReference> tableReferenceByAlias) Constructor parameters in org.hibernate.query.sqm.mutation.internal.temptable with type arguments of type TableReferenceModifierConstructorDescriptionInsertExecutionDelegate
(MultiTableSqmMutationConverter sqmConverter, TemporaryTable entityTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor, String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup insertingTableGroup, Map<String, TableReference> tableReferenceByAlias, List<Assignment> assignments, InsertSelectStatement insertStatement, ConflictClause conflictClause, JdbcParameter sessionUidParameter, DomainQueryExecutionContext executionContext) UpdateExecutionDelegate
(MultiTableSqmMutationConverter sqmConverter, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor, String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup updatingTableGroup, Map<String, TableReference> tableReferenceByAlias, List<Assignment> assignments, Predicate suppliedPredicate, DomainQueryExecutionContext executionContext) -
Uses of TableReference in org.hibernate.sql.ast.spi
Methods in org.hibernate.sql.ast.spi that return types with arguments of type TableReferenceModifier and TypeMethodDescriptionstatic Map<String,
TableReference> AliasCollector.getTableReferences
(SqlAstNode node) Methods in org.hibernate.sql.ast.spi with parameters of type TableReferenceModifier and TypeMethodDescriptionSqlExpressionResolver.createColumnReferenceKey
(TableReference tableReference, String columnExpression, JdbcMapping jdbcMapping) Helper for generating an expression key for a column reference.SqlExpressionResolver.createColumnReferenceKey
(TableReference tableReference, SelectableMapping selectable) Convenience form for creating a key from TableReference and SelectableMappingSqlExpressionResolver.createColumnReferenceKey
(TableReference tableReference, SelectablePath selectablePath, JdbcMapping jdbcMapping) SqlExpressionResolver.createDiscriminatorColumnReferenceKey
(TableReference tableReference, EntityDiscriminatorMapping discriminatorMapping) Convenience form for creating a key from TableReference and EntityDiscriminatorMappingprotected void
AbstractSqlAstTranslator.renderTableReferenceIdentificationVariable
(TableReference tableReference) default Expression
SqlExpressionResolver.resolveSqlExpression
(TableReference tableReference, SelectableMapping selectableMapping) -
Uses of TableReference in org.hibernate.sql.ast.tree.cte
Methods in org.hibernate.sql.ast.tree.cte that return TableReferenceModifier and TypeMethodDescriptionCteTableGroup.getPrimaryTableReference()
CteTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) -
Uses of TableReference in org.hibernate.sql.ast.tree.expression
Constructors in org.hibernate.sql.ast.tree.expression with parameters of type TableReferenceModifierConstructorDescriptionColumnReference
(TableReference tableReference, String columnExpression, boolean isFormula, @Nullable String customReadExpression, JdbcMapping jdbcMapping) ColumnReference
(TableReference tableReference, String mapping, JdbcMapping jdbcMapping) ColumnReference
(TableReference tableReference, SelectableMapping selectableMapping) -
Uses of TableReference in org.hibernate.sql.ast.tree.from
Classes in org.hibernate.sql.ast.tree.from that implement TableReferenceModifier and TypeClassDescriptionclass
class
class
A table reference for functions that produce embeddable typed results.class
A table reference for a table valued function.class
Represents a reference to a "named" table in a query's from clause.class
A table reference for a query part.class
class
Methods in org.hibernate.sql.ast.tree.from that return TableReferenceModifier and TypeMethodDescriptiondefault TableReference
TableGroup.findTableReference
(String identificationVariable) protected abstract TableReference
AbstractColumnReferenceQualifier.getPrimaryTableReference()
CorrelatedTableGroup.getPrimaryTableReference()
DelegatingTableGroup.getPrimaryTableReference()
EmbeddableFunctionTableGroup.getPrimaryTableReference()
MutatingTableReferenceGroupWrapper.getPrimaryTableReference()
OneToManyTableGroup.getPrimaryTableReference()
StandardTableGroup.getPrimaryTableReference()
StandardVirtualTableGroup.getPrimaryTableReference()
TableGroup.getPrimaryTableReference()
AbstractColumnReferenceQualifier.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) CollectionTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) default TableReference
ColumnReferenceQualifier.getTableReference
(String tableExpression) default TableReference
ColumnReferenceQualifier.getTableReference
(NavigablePath navigablePath, String tableExpression) ColumnReferenceQualifier.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) Returns the table reference for the table expression, or null if not found.default TableReference
ColumnReferenceQualifier.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) CorrelatedPluralTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) CorrelatedPluralTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) CorrelatedTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) CorrelatedTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) DelegatingTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) DelegatingTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) DerivedTableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) EmbeddableFunctionTableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) FunctionTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) LazyTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) LazyTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) MappedByTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) MappedByTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) MutatingTableReferenceGroupWrapper.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) NamedTableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) OneToManyTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) QueryPartTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) StandardTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) StandardVirtualTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) StandardVirtualTableGroup.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) TableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) UnionTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) UnionTableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) ValuesTableGroup.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) protected TableReference
StandardTableGroup.potentiallyCreateTableReference
(String tableExpression) default TableReference
ColumnReferenceQualifier.resolveTableReference
(String tableExpression) default TableReference
ColumnReferenceQualifier.resolveTableReference
(NavigablePath navigablePath, String tableExpression) LikeColumnReferenceQualifier.getTableReference(NavigablePath, String, boolean)
, but will throw an exception if no table reference can be found, even after resolving possible table reference joins.default TableReference
ColumnReferenceQualifier.resolveTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression) DerivedTableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) DerivedTableReference.resolveTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression) EmbeddableFunctionTableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) MappedByTableGroup.resolveTableReference
(NavigablePath navigablePath, String tableExpression) MappedByTableGroup.resolveTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression) NamedTableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) TableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) UnionTableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) Methods in org.hibernate.sql.ast.tree.from with parameters of type TableReferenceModifier and TypeMethodDescriptionTableReferenceJoinPredicateProducer.producePredicate
(TableReference lhs, TableReference rhs, SqlAstJoinType sqlAstJoinType) Method parameters in org.hibernate.sql.ast.tree.from with type arguments of type TableReferenceModifier and TypeMethodDescription<T> T
FromClause.queryTableReferences
(Function<TableReference, T> action) void
FromClause.visitTableReferences
(Consumer<TableReference> action) Constructors in org.hibernate.sql.ast.tree.from with parameters of type TableReferenceModifierConstructorDescriptionCollectionTableGroup
(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) 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) -
Uses of TableReference in org.hibernate.sql.model.ast
Classes in org.hibernate.sql.model.ast that implement TableReferenceModifier and TypeClassDescriptionclass
Specialized TableReference for model mutation operationsMethods in org.hibernate.sql.model.ast that return TableReferenceModifier and TypeMethodDescriptionMutatingTableReference.getTableReference
(NavigablePath navigablePath, String tableExpression, boolean resolve) MutatingTableReference.getTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) MutatingTableReference.resolveTableReference
(NavigablePath navigablePath, String tableExpression) MutatingTableReference.resolveTableReference
(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression) Constructors in org.hibernate.sql.model.ast with parameters of type TableReferenceModifierConstructorDescriptionColumnValueParameterList
(TableReference tableReference, ParameterUsage parameterUsage, int jdbcTypeCount)