Interface SQLBatchExecutor


public interface SQLBatchExecutor
Represents for a batch executor that executes batch SQL command

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Method Details

    • getDelegate

      SQLBatchExecutor getDelegate()
    • batch

      @CheckReturnValue io.smallrye.mutiny.Uni<BatchResult> batch(Function<org.jooq.DSLContext,org.jooq.Query> queryFunction, BindBatchValues bindBatchValues)
      Batch execute

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      queryFunction - query function
      bindBatchValues - bind batch values
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • batchAndAwait

      BatchResult batchAndAwait(Function<org.jooq.DSLContext,org.jooq.Query> queryFunction, BindBatchValues bindBatchValues)
      Blocking variant of batch(Function,BindBatchValues).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      queryFunction - query function
      bindBatchValues - bind batch values
      Returns:
      the BatchResult instance produced by the operation.
    • batchAndForget

      void batchAndForget(Function<org.jooq.DSLContext,org.jooq.Query> queryFunction, BindBatchValues bindBatchValues)
      Variant of batch(Function,BindBatchValues) that ignores the result of the operation.

      This method subscribes on the result of batch(Function,BindBatchValues), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from batch(Function,BindBatchValues) but you don't need to compose it with other operations.

      Parameters:
      queryFunction - query function
      bindBatchValues - bind batch values
    • batch

      @CheckReturnValue io.smallrye.mutiny.Uni<BatchResult> batch(org.jooq.Query query, BindBatchValues bindBatchValues)
      Batch execute

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      query - query
      bindBatchValues - bind batch values
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • batchAndAwait

      BatchResult batchAndAwait(org.jooq.Query query, BindBatchValues bindBatchValues)
      Blocking variant of batch(Query,BindBatchValues).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      query - query
      bindBatchValues - bind batch values
      Returns:
      the BatchResult instance produced by the operation.
    • batchAndForget

      void batchAndForget(org.jooq.Query query, BindBatchValues bindBatchValues)
      Variant of batch(Query,BindBatchValues) that ignores the result of the operation.

      This method subscribes on the result of batch(Query,BindBatchValues), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from batch(Query,BindBatchValues) but you don't need to compose it with other operations.

      Parameters:
      query - query
      bindBatchValues - bind batch values
    • newInstance

      static SQLBatchExecutor newInstance(SQLBatchExecutor arg)