Class InlineDeleteHandler
java.lang.Object
org.hibernate.query.sqm.mutation.internal.inline.AbstractInlineHandler
org.hibernate.query.sqm.mutation.internal.inline.InlineDeleteHandler
- All Implemented Interfaces:
DeleteHandler,Handler,MultiTableHandler
DeleteHandler for the in-line strategy
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInlineDeleteHandler(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmDeleteStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindingsConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected JdbcOperationQueryMutationcreateMutation(InlineDeleteHandler.TableDeleter tableDeleter, List<Expression> inListExpressions, ExecutionContext executionContext) intexecute(JdbcParameterBindings jdbcParameterBindings, DomainQueryExecutionContext executionContext) Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.protected List<InlineDeleteHandler.TableDeleter> Methods inherited from class org.hibernate.query.sqm.mutation.internal.inline.AbstractInlineHandler
createJdbcParameterBindings, dependsOnParameterBindings, getDomainParameterXref, getEntityDescriptor, getMatchingIdsInterpretation, getMatchingIdsPredicateProducer, isCompatibleWithMethods 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.internal.Handler
dependsOnParameterBindings, execute, isCompatibleWithMethods inherited from interface org.hibernate.query.sqm.mutation.spi.MultiTableHandler
createJdbcParameterBindings
-
Constructor Details
-
InlineDeleteHandler
protected InlineDeleteHandler(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmDeleteStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindingsConsumer)
-
-
Method Details
-
execute
public int execute(JdbcParameterBindings jdbcParameterBindings, DomainQueryExecutionContext executionContext) Description copied from interface:MultiTableHandlerExecute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.- Specified by:
executein interfaceMultiTableHandler- Parameters:
jdbcParameterBindings- The parameter bindings for JDBC parametersexecutionContext- Contextual information needed for execution- Returns:
- The "number of rows affected" count
-
createMutation
protected JdbcOperationQueryMutation createMutation(InlineDeleteHandler.TableDeleter tableDeleter, List<Expression> inListExpressions, ExecutionContext executionContext) -
getTableDeleters
-