Interface SQLBatchResultExecutor
reactive sql executor
that is adapted for to execute batch SQL command and able to
return the number of succeed row and row detail
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Method Summary
Modifier and TypeMethodDescription<T,
R> io.smallrye.mutiny.Uni<BatchReturningResult<R>> batchResult
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch execute<T,
R> io.smallrye.mutiny.Uni<BatchReturningResult<R>> batchResult
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive results<T,
R> BatchReturningResult<R> batchResultAndAwait
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofbatchResult(Function,BindBatchValues,SQLResultListAdapter)
.<T,
R> BatchReturningResult<R> batchResultAndAwait
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofbatchResult(Query,BindBatchValues,SQLResultListAdapter)
.<T,
R> void batchResultAndForget
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofbatchResult(Function,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.<T,
R> void batchResultAndForget
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofbatchResult(Query,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.static SQLBatchResultExecutor
-
Method Details
-
getDelegate
SQLBatchResultExecutor getDelegate() -
batchResult
@CheckReturnValue <T,R> io.smallrye.mutiny.Uni<BatchReturningResult<R>> batchResult(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch executeUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
batchResultAndAwait
<T,R> BatchReturningResult<R> batchResultAndAwait(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofbatchResult(Function,BindBatchValues,SQLResultListAdapter)
.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 functionbindBatchValues
- bind batch valuesadapter
-- Returns:
- the BatchReturningResult
instance produced by the operation.
-
batchResultAndForget
<T,R> void batchResultAndForget(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofbatchResult(Function,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.This method subscribes on the result of
batchResult(Function,BindBatchValues,SQLResultListAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frombatchResult(Function,BindBatchValues,SQLResultListAdapter)
but you don't need to compose it with other operations.- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-
-
batchResult
@CheckReturnValue <T,R> io.smallrye.mutiny.Uni<BatchReturningResult<R>> batchResult(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive resultsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
batchResultAndAwait
<T,R> BatchReturningResult<R> batchResultAndAwait(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofbatchResult(Query,BindBatchValues,SQLResultListAdapter)
.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
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter- Returns:
- the BatchReturningResult
instance produced by the operation.
-
batchResultAndForget
<T,R> void batchResultAndForget(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofbatchResult(Query,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.This method subscribes on the result of
batchResult(Query,BindBatchValues,SQLResultListAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frombatchResult(Query,BindBatchValues,SQLResultListAdapter)
but you don't need to compose it with other operations.- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter
-
newInstance
-