Uses of Interface
org.hibernate.sql.ast.tree.from.TableReference
Packages that use TableReference
Package
Description
Internal package containing dialect-specific extensions of
AbstractSqlAstTranslator.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.dialect.sql.ast
Methods in org.hibernate.dialect.sql.ast with parameters of type TableReferenceModifier and TypeMethodDescriptionprotected voidCockroachSqlAstTranslator.renderTableReferenceIdentificationVariable(TableReference tableReference) protected voidPostgreSQLSqlAstTranslator.renderTableReferenceIdentificationVariable(TableReference tableReference) -
Uses of TableReference in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return TableReferenceModifier and TypeMethodDescriptiondefault TableReferenceEntityMappingType.createPrimaryTableReference(SqlAliasBase sqlAliasBase, SqlAstCreationState creationState) Methods in org.hibernate.metamodel.mapping with parameters of type TableReferenceModifier and TypeMethodDescriptionSoftDeleteMapping.createNonDeletedRestriction(TableReference tableReference) Create a SQL AST Predicate for restricting matches to non-deleted rowsSoftDeleteMapping.createNonDeletedRestriction(TableReference tableReference, SqlExpressionResolver expressionResolver) Create a SQL AST Predicate for restricting matches to non-deleted rowsSoftDeleteMapping.createSoftDeleteAssignment(TableReference tableReference) Create a SQL AST Assignment for setting the soft-delete column to its indicated "deleted" valuedefault TableReferenceJoinEntityMappingType.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 TypeMethodDescriptionSoftDeleteMappingImpl.createNonDeletedRestriction(TableReference tableReference) SoftDeleteMappingImpl.createNonDeletedRestriction(TableReference tableReference, SqlExpressionResolver expressionResolver) SoftDeleteMappingImpl.createSoftDeleteAssignment(TableReference tableReference) EmbeddedForeignKeyDescriptor.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 PredicateAbstractEntityPersister.generateJoinPredicate(TableReference rootTableReference, TableReference joinedTableReference, String[] pkColumnNames, String[] fkColumnNames, SqlAstCreationState creationState) protected TableReferenceJoinAbstractEntityPersister.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 ExpressionResultsHelper.resolveSqlExpression(DomainResultCreationStateImpl resolver, TableReference tableReference, SelectableMapping selectableMapping, int valuesArrayPosition) static ExpressionResultsHelper.resolveSqlExpression(DomainResultCreationStateImpl resolver, JdbcValuesMetadata jdbcValuesMetadata, TableReference tableReference, EntityDiscriminatorMapping discriminatorMapping, String columnAlias) static ExpressionResultsHelper.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 voidSqmMutationStrategyHelper.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 NamedTableReferenceAbstractCteMutationHandler.resolveUnionTableReference(TableReference tableReference, String tableExpression) protected NamedTableReferenceCteInsertHandler.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 TableReferenceUpdateExecutionDelegate.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 voidTableBasedUpdateHandler.collectTableReference(TableReference tableReference, BiConsumer<String, TableReference> consumer) static QuerySpecExecuteWithoutIdTableHelper.createIdMatchingSubQuerySpec(NavigablePath navigablePath, TableReference rootTableReference, Predicate predicate, EntityPersister rootEntityPersister, SqlExpressionResolver sqlExpressionResolver, SessionFactoryImplementor sessionFactory) protected NamedTableReferenceUpdateExecutionDelegate.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 UpdateExecutionDelegateTableBasedUpdateHandler.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 voidTableBasedUpdateHandler.collectTableReference(TableReferenceJoin tableReferenceJoin, BiConsumer<String, TableReference> consumer) protected voidTableBasedUpdateHandler.collectTableReference(TableReference tableReference, BiConsumer<String, TableReference> consumer) protected TableReferenceUpdateExecutionDelegate.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 voidAbstractSqlAstTranslator.renderTableReferenceIdentificationVariable(TableReference tableReference) default ExpressionSqlExpressionResolver.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 TypeClassDescriptionclassclassclassA table reference for functions that produce embeddable typed results.classA table reference for a table valued function.classRepresents a reference to a "named" table in a query's from clause.classA table reference for a query part.classclassMethods in org.hibernate.sql.ast.tree.from that return TableReferenceModifier and TypeMethodDescriptiondefault TableReferenceTableGroup.findTableReference(String identificationVariable) protected abstract TableReferenceAbstractColumnReferenceQualifier.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 TableReferenceColumnReferenceQualifier.getTableReference(String tableExpression) default TableReferenceColumnReferenceQualifier.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 TableReferenceColumnReferenceQualifier.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 TableReferenceStandardTableGroup.potentiallyCreateTableReference(String tableExpression) default TableReferenceColumnReferenceQualifier.resolveTableReference(String tableExpression) default TableReferenceColumnReferenceQualifier.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 TableReferenceColumnReferenceQualifier.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> TFromClause.queryTableReferences(Function<TableReference, T> action) voidFromClause.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 TypeClassDescriptionclassSpecialized 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)