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 TypeMethodDescriptionint
executeDelete
(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Execute the multi-table update indicated by the passed SqmUpdateStatementint
executeUpdate
(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, wait
Methods inherited from interface org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy
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:SqmMultiTableMutationStrategy
Execute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeUpdate
in interfaceSqmMultiTableMutationStrategy
- Returns:
- The number of rows affected
-
executeDelete
public int executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Description copied from interface:SqmMultiTableMutationStrategy
Execute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeDelete
in interfaceSqmMultiTableMutationStrategy
- Returns:
- The number of rows affected
-