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
ConstructorsModifierConstructorDescriptionprotected
InlineDeleteHandler
(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmDeleteStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindingsConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected JdbcOperationQueryMutation
createMutation
(InlineDeleteHandler.TableDeleter tableDeleter, List<Expression> inListExpressions, ExecutionContext executionContext) int
execute
(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, isCompatibleWith
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.internal.Handler
dependsOnParameterBindings, execute, isCompatibleWith
Methods 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:MultiTableHandler
Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.- Specified by:
execute
in 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
-