Class ReactiveCteInsertHandler
java.lang.Object
org.hibernate.query.sqm.mutation.internal.cte.CteInsertHandler
org.hibernate.reactive.query.sqm.mutation.internal.cte.ReactiveCteInsertHandler
- All Implemented Interfaces:
org.hibernate.query.sqm.mutation.internal.Handler,org.hibernate.query.sqm.mutation.internal.InsertHandler,org.hibernate.query.sqm.mutation.spi.MultiTableHandler,ReactiveHandler
public class ReactiveCteInsertHandler
extends org.hibernate.query.sqm.mutation.internal.cte.CteInsertHandler
implements ReactiveHandler
-
Field Summary
Fields inherited from class org.hibernate.query.sqm.mutation.internal.cte.CteInsertHandler
CTE_TABLE_IDENTIFIER, DML_RESULT_TABLE_NAME_PREFIX, ROW_NUMBERS_WITH_SEQUENCE_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionReactiveCteInsertHandler(org.hibernate.sql.ast.tree.cte.CteTable cteTable, org.hibernate.query.sqm.tree.insert.SqmInsertStatement<?> sqmStatement, org.hibernate.query.sqm.internal.DomainParameterXref domainParameterXref, org.hibernate.query.spi.DomainQueryExecutionContext context, org.hibernate.internal.util.MutableObject<org.hibernate.sql.exec.spi.JdbcParameterBindings> firstJdbcParameterBindingsConsumer) -
Method Summary
Modifier and TypeMethodDescriptionintexecute(org.hibernate.query.spi.DomainQueryExecutionContext executionContext) reactiveExecute(org.hibernate.sql.exec.spi.JdbcParameterBindings jdbcParameterBindings, org.hibernate.query.spi.DomainQueryExecutionContext context) Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.Methods inherited from class org.hibernate.query.sqm.mutation.internal.cte.CteInsertHandler
addDmlCtes, createCountStar, createCteTable, createJdbcParameterBindings, dependsOnParameterBindings, execute, getCteTableName, getCteTableName, getSelect, isCompatibleWith, resolveUnionTableReferenceMethods 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, isCompatibleWithMethods inherited from interface org.hibernate.query.sqm.mutation.spi.MultiTableHandler
createJdbcParameterBindingsMethods inherited from interface org.hibernate.reactive.query.sqm.mutation.internal.ReactiveHandler
execute, reactiveExecute
-
Constructor Details
-
ReactiveCteInsertHandler
public ReactiveCteInsertHandler(org.hibernate.sql.ast.tree.cte.CteTable cteTable, org.hibernate.query.sqm.tree.insert.SqmInsertStatement<?> sqmStatement, org.hibernate.query.sqm.internal.DomainParameterXref domainParameterXref, org.hibernate.query.spi.DomainQueryExecutionContext context, org.hibernate.internal.util.MutableObject<org.hibernate.sql.exec.spi.JdbcParameterBindings> firstJdbcParameterBindingsConsumer)
-
-
Method Details
-
execute
public int execute(org.hibernate.query.spi.DomainQueryExecutionContext executionContext) - Specified by:
executein interfaceorg.hibernate.query.sqm.mutation.internal.Handler- Specified by:
executein interfaceReactiveHandler
-
reactiveExecute
public CompletionStage<Integer> reactiveExecute(org.hibernate.sql.exec.spi.JdbcParameterBindings jdbcParameterBindings, org.hibernate.query.spi.DomainQueryExecutionContext context) Description copied from interface:ReactiveHandlerExecute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.- Specified by:
reactiveExecutein interfaceReactiveHandler- Parameters:
jdbcParameterBindings- The parameter bindings for JDBC parameterscontext- Contextual information needed for execution- Returns:
- The "number of rows affected" count
-