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 theJdbcParameterBindings
for this multi-table handler based on the execution context.protected JdbcOperationQueryMutation
createTableInsert
(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) protected JdbcOperationQueryMutation
createTableUpdate
(InlineUpdateHandler.TableUpdater tableUpdater, List<Expression> inListExpressions, JdbcParameterBindings jdbcParameterBindings, 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
<InlineUpdateHandler.TableUpdater> Methods inherited from class org.hibernate.query.sqm.mutation.internal.inline.AbstractInlineHandler
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
-
Constructor Details
-
InlineUpdateHandler
public InlineUpdateHandler(MatchingIdRestrictionProducer matchingIdsPredicateProducer, SqmUpdateStatement<?> sqmStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context, MutableObject<JdbcParameterBindings> firstJdbcParameterBindings)
-
-
Method Details
-
createJdbcParameterBindings
Description copied from interface:MultiTableHandler
Create theJdbcParameterBindings
for this multi-table handler based on the execution context.- Specified by:
createJdbcParameterBindings
in interfaceMultiTableHandler
- Overrides:
createJdbcParameterBindings
in 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: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
-
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)
-