Class ReactiveCteInsertHandler

  • All Implemented Interfaces:
    org.hibernate.query.sqm.mutation.internal.Handler, org.hibernate.query.sqm.mutation.internal.InsertHandler, 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.engine.spi.SessionFactoryImplementor sessionFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int execute​(org.hibernate.query.spi.DomainQueryExecutionContext executionContext)  
      java.util.concurrent.CompletionStage<java.lang.Integer> reactiveExecute​(org.hibernate.query.spi.DomainQueryExecutionContext executionContext)
      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, getCteTable, getCteTableName, getCteTableName, getDomainParameterXref, getEntityDescriptor, getSessionFactory, getSqmStatement, resolveUnionTableReference
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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.engine.spi.SessionFactoryImplementor sessionFactory)
    • Method Detail

      • execute

        public int execute​(org.hibernate.query.spi.DomainQueryExecutionContext executionContext)
        Specified by:
        execute in interface org.hibernate.query.sqm.mutation.internal.Handler
        Overrides:
        execute in class org.hibernate.query.sqm.mutation.internal.cte.CteInsertHandler
      • reactiveExecute

        public java.util.concurrent.CompletionStage<java.lang.Integer> reactiveExecute​(org.hibernate.query.spi.DomainQueryExecutionContext executionContext)
        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:
        executionContext - Contextual information needed for execution
        Returns:
        The "number of rows affected" count