Top Description Fields Constructors Methods
org.hibernate.query.sqm.mutation.internal

public Class MatchingIdSelectionHelper

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.hibernate.LockMode, .LockOptions, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.EntityMappingType, .MappingModelExpressible, .PluralAttributeMapping, .ValuedModelPart, org.hibernate.metamodel.model.domain.EntityDomainType, org.hibernate.query.spi.DomainQueryExecutionContext, org.hibernate.query.sqm.NodeBuilder, .SqmQuerySource, org.hibernate.query.sqm.internal.DomainParameterXref, .SqmJdbcExecutionContextAdapter, .SqmUtil, org.hibernate.query.sqm.spi.SqmParameterMappingModelResolutionAccess, org.hibernate.query.sqm.sql.SqmTranslation, .SqmTranslator, org.hibernate.query.sqm.sql.internal.SqlAstQueryPartProcessingStateImpl, org.hibernate.query.sqm.tree.SqmDeleteOrUpdateStatement, org.hibernate.query.sqm.tree.delete.SqmDeleteStatement, org.hibernate.query.sqm.tree.expression.SqmParameter, org.hibernate.query.sqm.tree.from.SqmFromClause, org.hibernate.query.sqm.tree.select.SqmQuerySpec, .SqmSelectClause, .SqmSelectStatement, org.hibernate.sql.ast.SqlAstJoinType, .SqlAstTranslator, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.sql.ast.tree.from.TableGroup, .TableReference, org.hibernate.sql.ast.tree.predicate.Predicate, org.hibernate.sql.ast.tree.select.QuerySpec, .SelectStatement, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect, .JdbcParameterBindings, org.hibernate.sql.results.graph.DomainResult, org.hibernate.sql.results.graph.basic.BasicResult, org.hibernate.sql.results.internal.SqlSelectionImpl, org.hibernate.sql.results.spi.ListResultsConsumer, .RowTransformer, org.jboss.logging.Logger

Helper used to generate the SELECT for selection of an entity's identifier, here specifically intended to be used as the SELECT portion of a multi-table SQM mutation
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static QuerySpec
generateMatchingIdSelectQuery(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement<T> sqmStatement, DomainParameterXref domainParameterXref, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static SelectStatement
generateMatchingIdSelectStatement(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement<T> sqmStatement, boolean queryRoot, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, DomainQueryExecutionContext executionContext, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static SqmSelectStatement<?>
public static List<Object>
selectMatchingIds(SqmDeleteOrUpdateStatement<?> sqmMutationStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext executionContext)

Centralized selection of ids matching the restriction of the DELETE or UPDATE SQM query

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

MatchingIdSelectionHelperback to summary
public MatchingIdSelectionHelper()

Method Detail

generateMatchingIdSelectQueryback to summary
public static QuerySpec generateMatchingIdSelectQuery(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement<T> sqmStatement, DomainParameterXref domainParameterXref, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, SessionFactoryImplementor sessionFactory)

Deprecated

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

generateMatchingIdSelectStatementback to summary
public static SelectStatement generateMatchingIdSelectStatement(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement<T> sqmStatement, boolean queryRoot, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, DomainQueryExecutionContext executionContext, SessionFactoryImplementor sessionFactory)

Deprecated

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

generateMatchingIdSelectStatementback to summary
public static SqmSelectStatement<?> generateMatchingIdSelectStatement(SqmDeleteOrUpdateStatement<?> sqmStatement, EntityMappingType entityDescriptor)
selectMatchingIdsback to summary
public static List<Object> selectMatchingIds(SqmDeleteOrUpdateStatement<?> sqmMutationStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext executionContext)

Centralized selection of ids matching the restriction of the DELETE or UPDATE SQM query