Class InlineUpdateHandler
java.lang.Object
org.hibernate.query.sqm.mutation.internal.inline.AbstractInlineHandler
org.hibernate.query.sqm.mutation.internal.inline.InlineUpdateHandler
- All Implemented Interfaces:
Handler,UpdateHandler,MultiTableHandler
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInlineUpdateHandler(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmUpdateStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindings) -
Method Summary
Modifier and TypeMethodDescriptionCreate theJdbcParameterBindingsfor this multi-table handler based on the execution context.protected JdbcOperationQueryMutationcreateTableInsert(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) protected JdbcOperationQueryMutationcreateTableUpdate(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, 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<InlineUpdateHandler.TableUpdater> Methods inherited from class org.hibernate.query.sqm.mutation.internal.inline.AbstractInlineHandler
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, isCompatibleWith
-
Constructor Details
-
InlineUpdateHandler
public InlineUpdateHandler(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmUpdateStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindings)
-
-
Method Details
-
createJdbcParameterBindings
Description copied from interface:MultiTableHandlerCreate theJdbcParameterBindingsfor this multi-table handler based on the execution context.- Specified by:
createJdbcParameterBindingsin interfaceMultiTableHandler- Overrides:
createJdbcParameterBindingsin classAbstractInlineHandler- Parameters:
context- Contextual information needed for execution- Returns:
- The built parameter bindings
-
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
-
getTableUpdaters
-
createTableUpdate
protected JdbcOperationQueryMutation createTableUpdate(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) -
createTableInsert
protected JdbcOperationQueryMutation createTableInsert(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext)
-