Interface Handler
- All Superinterfaces:
MultiTableHandler
- All Known Subinterfaces:
DeleteHandler,InsertHandler,UpdateHandler
- All Known Implementing Classes:
AbstractCteMutationHandler,AbstractInlineHandler,AbstractMutationHandler,CteDeleteHandler,CteInsertHandler,CteSoftDeleteHandler,CteUpdateHandler,InlineDeleteHandler,InlineUpdateHandler,TableBasedDeleteHandler,TableBasedInsertHandler,TableBasedSoftDeleteHandler,TableBasedUpdateHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Simply as a matter of code structuring it is often worthwhile to put all of the execution code into a separate
handler (executor) class. This contract helps unify those helpers.
Hiding this "behind the strategy" also allows mixing approaches based on the nature of specific
queries
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Signals that the SQL depends on the parameter bindings e.g.default intexecute(DomainQueryExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.default booleanisCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface org.hibernate.query.sqm.mutation.spi.MultiTableHandler
createJdbcParameterBindings, execute
-
Method Details
-
execute
Deprecated, for removal: This API element is subject to removal in a future version.Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.- Parameters:
executionContext- Contextual information needed for execution- Returns:
- The "number of rows affected" count
-
dependsOnParameterBindings
default boolean dependsOnParameterBindings()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiTableHandlerSignals that the SQL depends on the parameter bindings e.g. due to the need for inlining of parameter values or multiValued parameters.- Specified by:
dependsOnParameterBindingsin interfaceMultiTableHandler
-
isCompatibleWith
default boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isCompatibleWithin interfaceMultiTableHandler
-
MultiTableHandler