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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    int
    execute(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, resolveUnionTableReference

    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, isCompatibleWith

    Methods inherited from interface org.hibernate.query.sqm.mutation.spi.MultiTableHandler

    createJdbcParameterBindings

    Methods 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:
      execute in interface org.hibernate.query.sqm.mutation.internal.Handler
      Specified by:
      execute in interface ReactiveHandler
    • reactiveExecute

      public CompletionStage<Integer> reactiveExecute(org.hibernate.sql.exec.spi.JdbcParameterBindings jdbcParameterBindings, org.hibernate.query.spi.DomainQueryExecutionContext context)
      Description copied from interface: ReactiveHandler
      Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.
      Specified by:
      reactiveExecute in interface ReactiveHandler
      Parameters:
      jdbcParameterBindings - The parameter bindings for JDBC parameters
      context - Contextual information needed for execution
      Returns:
      The "number of rows affected" count