Class InlineMutationStrategy
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.inline.InlineMutationStrategy
-
- All Implemented Interfaces:
SqmMultiTableMutationStrategy
public class InlineMutationStrategy extends Object implements 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 theMatchingIdRestrictionProducer
implementation used
-
-
Constructor Summary
Constructors Constructor Description InlineMutationStrategy(Function<SqmDeleteOrUpdateStatement<?>,MatchingIdRestrictionProducer> matchingIdsStrategy)
InlineMutationStrategy(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 SqmUpdateStatement-
Methods 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 Detail
-
InlineMutationStrategy
public InlineMutationStrategy(Dialect dialect)
-
InlineMutationStrategy
public InlineMutationStrategy(Function<SqmDeleteOrUpdateStatement<?>,MatchingIdRestrictionProducer> matchingIdsStrategy)
-
-
Method Detail
-
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
-
-