Uses of Interface
org.hibernate.sql.ast.tree.from.TableReference
-
Packages that use TableReference Package Description org.hibernate.boot.model.internal org.hibernate.dialect This package abstracts over the multifarious dialects of SQL understood by the databases supported by Hibernate.org.hibernate.metamodel.mapping Defines the runtime mapping metamodel, which describes the mapping of the application's domain model parts (entities, attributes) to relational database objects (tables, columns).org.hibernate.metamodel.mapping.internal org.hibernate.persister.entity This package abstracts persistence mechanisms for entities.org.hibernate.query.results Support for defining result set mappings used inNativeQuery
,ProcedureCall
, andStoredProcedureQuery
.org.hibernate.query.sqm.mutation.internal org.hibernate.query.sqm.mutation.internal.cte org.hibernate.query.sqm.mutation.internal.inline org.hibernate.query.sqm.mutation.internal.temptable Support for multi-table SQM mutation (insert, update, delete) operations using a table to temporarily hold the matching ids.org.hibernate.sql.ast.spi Package defining support for creating and consuming a SQL AST.org.hibernate.sql.ast.tree.cte Support for common table expressions (CTE) in a SQL tree.org.hibernate.sql.ast.tree.expression AST nodes representing expressions in a SQL tree.org.hibernate.sql.ast.tree.from AST nodes representing root tables and joins in a SQL tree.org.hibernate.sql.model.ast 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 TableReference Modifier and Type Method Description static 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 TableReference Modifier and Type Method Description protected 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 TableReference Modifier and Type Method Description default TableReference
EntityMappingType. createPrimaryTableReference(SqlAliasBase sqlAliasBase, SqlAstCreationState creationState)
Methods in org.hibernate.metamodel.mapping with parameters of type TableReference Modifier and Type Method Description default TableReferenceJoin
EntityMappingType. createTableReferenceJoin(String joinTableExpression, SqlAliasBase sqlAliasBase, TableReference lhs, SqlAstCreationState creationState)
Predicate
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 TableReference Modifier and Type Method Description List<TableReference>
CaseStatementDiscriminatorMappingImpl.CaseStatementDiscriminatorExpression. getUsedTableReferences()
Methods in org.hibernate.metamodel.mapping.internal with parameters of type TableReference Modifier and Type Method Description Predicate
EmbeddedForeignKeyDescriptor. generateJoinPredicate(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState)
Predicate
SimpleForeignKeyDescriptor. generateJoinPredicate(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState)
-
Uses of TableReference in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return TableReference Modifier and Type Method Description TableReference
AbstractEntityPersister. createPrimaryTableReference(SqlAliasBase sqlAliasBase, SqlAstCreationState sqlAstCreationState)
Methods in org.hibernate.persister.entity with parameters of type TableReference Modifier and Type Method Description TableReferenceJoin
AbstractEntityPersister. 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
Methods in org.hibernate.query.results that return TableReference Modifier and Type Method Description TableReference
TableGroupImpl. getPrimaryTableReference()
TableReference
TableGroupImpl. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
Methods in org.hibernate.query.results with parameters of type TableReference Modifier and Type Method Description static Expression
ResultsHelper. resolveSqlExpression(DomainResultCreationStateImpl resolver, TableReference tableReference, SelectableMapping selectableMapping, int valuesArrayPosition)
static Expression
ResultsHelper. resolveSqlExpression(DomainResultCreationStateImpl resolver, JdbcValuesMetadata jdbcValuesMetadata, TableReference tableReference, SelectableMapping selectableMapping, String columnAlias)
Constructors in org.hibernate.query.results with parameters of type TableReference Constructor Description TableGroupImpl(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 TableReference Modifier and Type Method Description static 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 TableReference Modifier and Type Method Description protected 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 TableReference Modifier and Type Method Description InListPredicate
InPredicateRestrictionProducer. produceRestriction(List<Expression> matchingIdValueExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)
Predicate
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 TableReference Modifier and Type Method Description protected 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 TableReference Modifier and Type Method Description protected Map<TableReference,List<Assignment>>
UpdateExecutionDelegate. getAssignmentsByTable()
Methods in org.hibernate.query.sqm.mutation.internal.temptable with parameters of type TableReference Modifier and Type Method Description protected 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 TableReference Modifier and Type Method Description protected TableBasedInsertHandler.ExecutionDelegate
TableBasedInsertHandler. 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)
-
Uses of TableReference in org.hibernate.sql.ast.spi
Methods in org.hibernate.sql.ast.spi that return types with arguments of type TableReference Modifier and Type Method Description static Map<String,TableReference>
AliasCollector. getTableReferences(SqlAstNode node)
Methods in org.hibernate.sql.ast.spi with parameters of type TableReference Modifier and Type Method Description static SqlExpressionResolver.ColumnReferenceKey
SqlExpressionResolver. createColumnReferenceKey(TableReference tableReference, String columnExpression, JdbcMapping jdbcMapping)
Helper for generating an expression key for a column reference.static SqlExpressionResolver.ColumnReferenceKey
SqlExpressionResolver. createColumnReferenceKey(TableReference tableReference, SelectableMapping selectable)
Convenience form for creating a key from TableReference and SelectableMappingstatic SqlExpressionResolver.ColumnReferenceKey
SqlExpressionResolver. createColumnReferenceKey(TableReference tableReference, SelectablePath selectablePath, JdbcMapping jdbcMapping)
protected 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 TableReference Modifier and Type Method Description TableReference
CteTableGroup. getPrimaryTableReference()
TableReference
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 TableReference Constructor Description ColumnReference(TableReference tableReference, String columnExpression, boolean isFormula, 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 TableReference Modifier and Type Class Description class
AbstractTableReference
class
DerivedTableReference
class
EmbeddableFunctionTableReference
A table reference for functions that produce embeddable typed results.class
FunctionTableReference
A table reference for a table valued function.class
NamedTableReference
Represents a reference to a "named" table in a query's from clause.class
QueryPartTableReference
A table reference for a query part.class
UnionTableReference
class
ValuesTableReference
Methods in org.hibernate.sql.ast.tree.from that return TableReference Modifier and Type Method Description protected abstract TableReference
AbstractColumnReferenceQualifier. getPrimaryTableReference()
TableReference
CorrelatedTableGroup. getPrimaryTableReference()
TableReference
DelegatingTableGroup. getPrimaryTableReference()
TableReference
EmbeddableFunctionTableGroup. getPrimaryTableReference()
TableReference
MutatingTableReferenceGroupWrapper. getPrimaryTableReference()
TableReference
OneToManyTableGroup. getPrimaryTableReference()
TableReference
StandardTableGroup. getPrimaryTableReference()
TableReference
StandardVirtualTableGroup. getPrimaryTableReference()
TableReference
TableGroup. getPrimaryTableReference()
TableReference
AbstractColumnReferenceQualifier. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
CollectionTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
default TableReference
ColumnReferenceQualifier. getTableReference(String tableExpression)
default TableReference
ColumnReferenceQualifier. getTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
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)
TableReference
CorrelatedPluralTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
CorrelatedPluralTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
CorrelatedTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
CorrelatedTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
DelegatingTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
DelegatingTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
DerivedTableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
EmbeddableFunctionTableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
FunctionTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
LazyTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
LazyTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
MappedByTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
MappedByTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
MutatingTableReferenceGroupWrapper. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
NamedTableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
OneToManyTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
QueryPartTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
StandardTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
StandardVirtualTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
StandardVirtualTableGroup. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
TableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
UnionTableGroup. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
UnionTableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
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)
TableReference
DerivedTableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
DerivedTableReference. resolveTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression)
TableReference
EmbeddableFunctionTableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
MappedByTableGroup. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
MappedByTableGroup. resolveTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression)
TableReference
NamedTableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
TableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
UnionTableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
Methods in org.hibernate.sql.ast.tree.from with parameters of type TableReference Modifier and Type Method Description Predicate
TableReferenceJoinPredicateProducer. producePredicate(TableReference lhs, TableReference rhs, SqlAstJoinType sqlAstJoinType)
Method parameters in org.hibernate.sql.ast.tree.from with type arguments of type TableReference Modifier and Type Method Description <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 TableReference 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)
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 TableReference Modifier and Type Class Description class
MutatingTableReference
Specialized TableReference for model mutation operationsMethods in org.hibernate.sql.model.ast that return TableReference Modifier and Type Method Description TableReference
MutatingTableReference. getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve)
TableReference
MutatingTableReference. getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
TableReference
MutatingTableReference. resolveTableReference(NavigablePath navigablePath, String tableExpression)
TableReference
MutatingTableReference. resolveTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression)
Constructors in org.hibernate.sql.model.ast with parameters of type TableReference Constructor Description ColumnValueParameterList(TableReference tableReference, ParameterUsage parameterUsage, int jdbcTypeCount)
-