Interface SqmMultiTableMutationStrategy


public interface SqmMultiTableMutationStrategy
Pluggable strategy for defining how mutation (UPDATE or DELETE) queries should be handled when the target entity is mapped to multiple tables via secondary tables or certain inheritance strategies.

The main contracts here are executeUpdate(SqmUpdateStatement, DomainParameterXref, DomainQueryExecutionContext) and executeDelete(SqmDeleteStatement, DomainParameterXref, DomainQueryExecutionContext).

The methods prepare(MappingModelCreationProcess, JdbcConnectionAccess) and release(SessionFactoryImplementor, JdbcConnectionAccess) allow the strategy to perform any one time preparation and cleanup.

API Note:
See SqmMultiTableMutationStrategyProvider.createMutationStrategy(EntityMappingType, MappingModelCreationProcess) for standard resolution of the strategy to use for each hierarchy.