Class MatchingIdSelectionHelper
java.lang.Object
org.hibernate.query.sqm.mutation.internal.MatchingIdSelectionHelper
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuerySpecgenerateMatchingIdSelectQuery(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement sqmStatement, DomainParameterXref domainParameterXref, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, SessionFactoryImplementor sessionFactory) static SelectStatementgenerateMatchingIdSelectStatement(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement sqmStatement, boolean queryRoot, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, DomainQueryExecutionContext executionContext, SessionFactoryImplementor sessionFactory) static SqmSelectStatement<?>generateMatchingIdSelectStatement(SqmDeleteOrUpdateStatement<?> sqmStatement, EntityMappingType entityDescriptor) selectMatchingIds(SqmDeleteOrUpdateStatement<?> sqmMutationStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext executionContext) Centralized selection of ids matching the restriction of the DELETE or UPDATE SQM query
-
Constructor Details
-
MatchingIdSelectionHelper
public MatchingIdSelectionHelper()
-
-
Method Details
-
generateMatchingIdSelectStatement
public static SelectStatement generateMatchingIdSelectStatement(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement sqmStatement, boolean queryRoot, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, DomainQueryExecutionContext executionContext, SessionFactoryImplementor sessionFactory) -
generateMatchingIdSelectStatement
public static SqmSelectStatement<?> generateMatchingIdSelectStatement(SqmDeleteOrUpdateStatement<?> sqmStatement, EntityMappingType entityDescriptor) -
generateMatchingIdSelectQuery
public static QuerySpec generateMatchingIdSelectQuery(EntityMappingType targetEntityDescriptor, SqmDeleteOrUpdateStatement sqmStatement, DomainParameterXref domainParameterXref, Predicate restriction, MultiTableSqmMutationConverter sqmConverter, SessionFactoryImplementor sessionFactory) -
selectMatchingIds
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
-