Class InlineMutationStrategy
java.lang.Object
org.hibernate.query.sqm.mutation.internal.inline.InlineMutationStrategy
- All Implemented Interfaces:
SqmMultiTableMutationStrategy
Support for multi-table SQM mutation operations which select the matching id values from the database back into
the VM and uses that list of values to produce a restriction for the mutations. The exact form of that
restriction is based on the
MatchingIdRestrictionProducer implementation used-
Constructor Summary
ConstructorsConstructorDescriptionInlineMutationStrategy(Function<SqmDeleteOrUpdateStatement<?>, MatchingIdRestrictionProducer> matchingIdsStrategy) InlineMutationStrategy(Dialect dialect) -
Method Summary
Modifier and TypeMethodDescriptionintexecuteDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Execute the multi-table update indicated by the passed SqmUpdateStatementintexecuteUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Execute the multi-table update indicated by the passed SqmUpdateStatementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy
prepare, prepare, release
-
Constructor Details
-
InlineMutationStrategy
-
InlineMutationStrategy
public InlineMutationStrategy(Function<SqmDeleteOrUpdateStatement<?>, MatchingIdRestrictionProducer> matchingIdsStrategy)
-
-
Method Details
-
executeUpdate
public int executeUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Description copied from interface:SqmMultiTableMutationStrategyExecute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeUpdatein interfaceSqmMultiTableMutationStrategy- Returns:
- The number of rows affected
-
executeDelete
public int executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Description copied from interface:SqmMultiTableMutationStrategyExecute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeDeletein interfaceSqmMultiTableMutationStrategy- Returns:
- The number of rows affected
-