Interface SQLBatchExecutor
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 Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<BatchResult>
batch
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Batch executeio.smallrye.mutiny.Uni<BatchResult>
batch
(org.jooq.Query query, BindBatchValues bindBatchValues) Batch executebatchAndAwait
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Blocking variant ofbatch(Function,BindBatchValues)
.batchAndAwait
(org.jooq.Query query, BindBatchValues bindBatchValues) Blocking variant ofbatch(Query,BindBatchValues)
.void
batchAndForget
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Variant ofbatch(Function,BindBatchValues)
that ignores the result of the operation.void
batchAndForget
(org.jooq.Query query, BindBatchValues bindBatchValues) Variant ofbatch(Query,BindBatchValues)
that ignores the result of the operation.static SQLBatchExecutor
-
Method Details
-
getDelegate
SQLBatchExecutor getDelegate() -
batch
@CheckReturnValue io.smallrye.mutiny.Uni<BatchResult> batch(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) 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 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 ofbatch(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 functionbindBatchValues
- 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 ofbatch(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 frombatch(Function,BindBatchValues)
but you don't need to compose it with other operations.- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch values
-
batch
@CheckReturnValue io.smallrye.mutiny.Uni<BatchResult> batch(org.jooq.Query query, BindBatchValues bindBatchValues) Batch executeUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
query
- querybindBatchValues
- bind batch values- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
batchAndAwait
Blocking variant ofbatch(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
- querybindBatchValues
- bind batch values- Returns:
- the BatchResult instance produced by the operation.
-
batchAndForget
Variant ofbatch(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 frombatch(Query,BindBatchValues)
but you don't need to compose it with other operations.- Parameters:
query
- querybindBatchValues
- bind batch values
-
newInstance
-