Class LegacyJooqxTx
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
-
Constructor Summary
-
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 ofSQLBatchExecutor.batch(Function,BindBatchValues)
.batchAndAwait
(org.jooq.Query query, BindBatchValues bindBatchValues) Blocking variant ofSQLBatchExecutor.batch(Query,BindBatchValues)
.void
batchAndForget
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Variant ofSQLBatchExecutor.batch(Function,BindBatchValues)
that ignores the result of the operation.void
batchAndForget
(org.jooq.Query query, BindBatchValues bindBatchValues) Variant ofSQLBatchExecutor.batch(Query,BindBatchValues)
that ignores the result of the operation.io.smallrye.mutiny.Uni<BlockResult>
block
(BlockQuery blockQuery) Block executeio.smallrye.mutiny.Uni<BlockResult>
block
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Block executeblockAndAwait
(BlockQuery blockQuery) Blocking variant ofSQLBlockExecutor.block(BlockQuery)
.blockAndAwait
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Blocking variant ofSQLBlockExecutor.block(Function)
.void
blockAndForget
(BlockQuery blockQuery) Variant ofSQLBlockExecutor.block(BlockQuery)
that ignores the result of the operation.void
blockAndForget
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Variant ofSQLBlockExecutor.block(Function)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Integer>
Execute DDL statementio.smallrye.mutiny.Uni<Integer>
ddl
(org.jooq.DDLQuery statement) Execute DDL statementddlAndAwait
(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction) Blocking variant ofSQLDDLExecutor.ddl(Function)
.ddlAndAwait
(org.jooq.DDLQuery statement) Blocking variant ofSQLDDLExecutor.ddl(DDLQuery)
.void
ddlAndForget
(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction) Variant ofSQLDDLExecutor.ddl(Function)
that ignores the result of the operation.void
ddlAndForget
(org.jooq.DDLQuery statement) Variant ofSQLDDLExecutor.ddl(DDLQuery)
that ignores the result of the operation.boolean
<T,
R> io.smallrye.mutiny.Uni<R> execute
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultio.smallrye.mutiny.Uni<Integer>
Execute row count query statement<T,
R> io.smallrye.mutiny.Uni<R> execute
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultio.smallrye.mutiny.Uni<Integer>
execute
(org.jooq.RowCountQuery statement) Execute row count query statement<T,
R> R executeAndAwait
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) Blocking variant ofSQLStatementExecutor.execute(Function,SQLResultAdapter)
.executeAndAwait
(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn) Blocking variant ofSQLStatementExecutor.execute(Function)
.<T,
R> R executeAndAwait
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) Blocking variant ofSQLStatementExecutor.execute(Query,SQLResultAdapter)
.executeAndAwait
(org.jooq.RowCountQuery statement) Blocking variant ofSQLStatementExecutor.execute(RowCountQuery)
.<T,
R> void executeAndForget
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) Variant ofSQLStatementExecutor.execute(Function,SQLResultAdapter)
that ignores the result of the operation.void
executeAndForget
(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn) Variant ofSQLStatementExecutor.execute(Function)
that ignores the result of the operation.<T,
R> void executeAndForget
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) Variant ofSQLStatementExecutor.execute(Query,SQLResultAdapter)
that ignores the result of the operation.void
executeAndForget
(org.jooq.RowCountQuery statement) Variant ofSQLStatementExecutor.execute(RowCountQuery)
that ignores the result of the operation.int
hashCode()
static LegacyJooqxTx
newInstance
(LegacyJooqxTx arg) <T> io.smallrye.mutiny.Uni<T>
<T> io.smallrye.mutiny.Uni<T>
routine
(org.jooq.Routine<T> routine) <T> T
routineAndAwait
(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction) <T> T
routineAndAwait
(org.jooq.Routine<T> routine) <T> void
routineAndForget
(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction) <T> void
routineAndForget
(org.jooq.Routine<T> routine) <T> io.smallrye.mutiny.Uni<RoutineResult>
routineResult
(org.jooq.Routine<T> routine) <T> RoutineResult
routineResultAndAwait
(org.jooq.Routine<T> routine) <T> void
routineResultAndForget
(org.jooq.Routine<T> routine) <T,
X, R> io.smallrye.mutiny.Uni<R> routineResultSet
(org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) <T,
X, R> R routineResultSetAndAwait
(org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) <T,
X, R> void routineResultSetAndForget
(org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) <X> io.smallrye.mutiny.Uni<X>
run
(Function<LegacyJooqxTx, io.smallrye.mutiny.Uni<X>> transactionFn) <X> X
runAndAwait
(Function<LegacyJooqxTx, io.smallrye.mutiny.Uni<X>> transactionFn) <X> void
runAndForget
(Function<LegacyJooqxTx, io.smallrye.mutiny.Uni<X>> transactionFn) session()
io.smallrye.mutiny.Uni<Integer>
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)io.smallrye.mutiny.Uni<Integer>
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)sqlAndAwait
(String statement) Blocking variant ofSQLPlainExecutor.sql(String)
.sqlAndAwait
(Function<org.jooq.DSLContext, String> sqlFunction) Blocking variant ofSQLPlainExecutor.sql(Function)
.void
sqlAndForget
(String statement) Variant ofSQLPlainExecutor.sql(String)
that ignores the result of the operation.void
sqlAndForget
(Function<org.jooq.DSLContext, String> sqlFunction) Variant ofSQLPlainExecutor.sql(Function)
that ignores the result of the operation.<T,
R> io.smallrye.mutiny.Uni<R> sqlQuery
(String statement, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> io.smallrye.mutiny.Uni<R> sqlQuery
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> R sqlQueryAndAwait
(String statement, SQLResultAdapter<T, R> adapter) Blocking variant ofSQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
.<T,
R> R sqlQueryAndAwait
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Blocking variant ofSQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
.<T,
R> void sqlQueryAndForget
(String statement, SQLResultAdapter<T, R> adapter) Variant ofSQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
that ignores the result of the operation.<T,
R> void sqlQueryAndForget
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Variant ofSQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
LegacyJooqxTx
-
LegacyJooqxTx
-
-
Method Details
-
getDelegate
-
toString
-
equals
-
hashCode
public int hashCode() -
sql
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
statement
- the plain SQL statement without result- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sqlAndAwait
Blocking variant ofSQLPlainExecutor.sql(String)
.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:
statement
- the plain SQL statement without result- Returns:
- the Integer instance produced by the operation.
-
sqlAndForget
Variant ofSQLPlainExecutor.sql(String)
that ignores the result of the operation.This method subscribes on the result of
SQLPlainExecutor.sql(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLPlainExecutor.sql(String)
but you don't need to compose it with other operations.- Parameters:
statement
- the plain SQL statement without result
-
session
-
transaction
-
run
@CheckReturnValue public <X> io.smallrye.mutiny.Uni<X> run(Function<LegacyJooqxTx, io.smallrye.mutiny.Uni<X>> transactionFn) -
runAndAwait
-
runAndForget
-
block
@CheckReturnValue public io.smallrye.mutiny.Uni<BlockResult> block(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Block executeUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
blockQueryFn
- the block of SQL queries function- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
blockAndAwait
Blocking variant ofSQLBlockExecutor.block(Function)
.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:
blockQueryFn
- the block of SQL queries function- Returns:
- the BlockResult instance produced by the operation.
-
blockAndForget
Variant ofSQLBlockExecutor.block(Function)
that ignores the result of the operation.This method subscribes on the result of
SQLBlockExecutor.block(Function)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBlockExecutor.block(Function)
but you don't need to compose it with other operations.- Parameters:
blockQueryFn
- the block of SQL queries function
-
block
Block executeUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
blockQuery
- the block of SQL queries- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
blockAndAwait
Blocking variant ofSQLBlockExecutor.block(BlockQuery)
.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:
blockQuery
- the block of SQL queries- Returns:
- the BlockResult instance produced by the operation.
-
blockAndForget
Variant ofSQLBlockExecutor.block(BlockQuery)
that ignores the result of the operation.This method subscribes on the result of
SQLBlockExecutor.block(BlockQuery)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBlockExecutor.block(BlockQuery)
but you don't need to compose it with other operations.- Parameters:
blockQuery
- the block of SQL queries
-
ddl
@CheckReturnValue public io.smallrye.mutiny.Uni<Integer> ddl(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction) Execute DDL statementUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
ddlFunction
- DDL function produces DDL statement- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
ddlAndAwait
Blocking variant ofSQLDDLExecutor.ddl(Function)
.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:
ddlFunction
- DDL function produces DDL statement- Returns:
- the Integer instance produced by the operation.
-
ddlAndForget
Variant ofSQLDDLExecutor.ddl(Function)
that ignores the result of the operation.This method subscribes on the result of
SQLDDLExecutor.ddl(Function)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLDDLExecutor.ddl(Function)
but you don't need to compose it with other operations.- Parameters:
ddlFunction
- DDL function produces DDL statement
-
ddl
Execute DDL statementUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
statement
- DDL statement- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
ddlAndAwait
Blocking variant ofSQLDDLExecutor.ddl(DDLQuery)
.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:
statement
- DDL statement- Returns:
- the Integer instance produced by the operation.
-
ddlAndForget
public void ddlAndForget(org.jooq.DDLQuery statement) Variant ofSQLDDLExecutor.ddl(DDLQuery)
that ignores the result of the operation.This method subscribes on the result of
SQLDDLExecutor.ddl(DDLQuery)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLDDLExecutor.ddl(DDLQuery)
but you don't need to compose it with other operations.- Parameters:
statement
- DDL statement
-
execute
@CheckReturnValue public <T,R> io.smallrye.mutiny.Uni<R> execute(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
queryFunction
- the jOOQ query functionresultAdapter
- the result adapter- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
public <T,R> R executeAndAwait(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) Blocking variant ofSQLStatementExecutor.execute(Function,SQLResultAdapter)
.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
- the jOOQ query functionresultAdapter
- the result adapter- Returns:
- the R instance produced by the operation.
-
executeAndForget
public <T,R> void executeAndForget(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) Variant ofSQLStatementExecutor.execute(Function,SQLResultAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLStatementExecutor.execute(Function,SQLResultAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLStatementExecutor.execute(Function,SQLResultAdapter)
but you don't need to compose it with other operations.- Parameters:
queryFunction
- the jOOQ query functionresultAdapter
- the result adapter
-
execute
@CheckReturnValue public <T,R> io.smallrye.mutiny.Uni<R> execute(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
query
- the jOOQ queryresultAdapter
- the result adapter- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
Blocking variant ofSQLStatementExecutor.execute(Query,SQLResultAdapter)
.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
- the jOOQ queryresultAdapter
- the result adapter- Returns:
- the R instance produced by the operation.
-
executeAndForget
Variant ofSQLStatementExecutor.execute(Query,SQLResultAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLStatementExecutor.execute(Query,SQLResultAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLStatementExecutor.execute(Query,SQLResultAdapter)
but you don't need to compose it with other operations.- Parameters:
query
- the jOOQ queryresultAdapter
- the result adapter
-
execute
@CheckReturnValue public io.smallrye.mutiny.Uni<Integer> execute(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn) Execute row count query statementUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
rowCountQueryFn
- A function produces row count query statement- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
public Integer executeAndAwait(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn) Blocking variant ofSQLStatementExecutor.execute(Function)
.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:
rowCountQueryFn
- A function produces row count query statement- Returns:
- the Integer instance produced by the operation.
-
executeAndForget
Variant ofSQLStatementExecutor.execute(Function)
that ignores the result of the operation.This method subscribes on the result of
SQLStatementExecutor.execute(Function)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLStatementExecutor.execute(Function)
but you don't need to compose it with other operations.- Parameters:
rowCountQueryFn
- A function produces row count query statement
-
execute
Execute row count query statementUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
statement
- a row count query statement- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
Blocking variant ofSQLStatementExecutor.execute(RowCountQuery)
.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:
statement
- a row count query statement- Returns:
- the Integer instance produced by the operation.
-
executeAndForget
public void executeAndForget(org.jooq.RowCountQuery statement) Variant ofSQLStatementExecutor.execute(RowCountQuery)
that ignores the result of the operation.This method subscribes on the result of
SQLStatementExecutor.execute(RowCountQuery)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLStatementExecutor.execute(RowCountQuery)
but you don't need to compose it with other operations.- Parameters:
statement
- a row count query statement
-
sql
@CheckReturnValue public io.smallrye.mutiny.Uni<Integer> sql(Function<org.jooq.DSLContext, String> sqlFunction) Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement without result- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sqlAndAwait
Blocking variant ofSQLPlainExecutor.sql(Function)
.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:
sqlFunction
- the plain SQL function products a plain SQL statement without result- Returns:
- the Integer instance produced by the operation.
-
sqlAndForget
Variant ofSQLPlainExecutor.sql(Function)
that ignores the result of the operation.This method subscribes on the result of
SQLPlainExecutor.sql(Function)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLPlainExecutor.sql(Function)
but you don't need to compose it with other operations.- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement without result
-
sqlQuery
@CheckReturnValue public <T,R> io.smallrye.mutiny.Uni<R> sqlQuery(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapter- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sqlQueryAndAwait
public <T,R> R sqlQueryAndAwait(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Blocking variant ofSQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
.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:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapter- Returns:
- the R instance produced by the operation.
-
sqlQueryAndForget
public <T,R> void sqlQueryAndForget(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Variant ofSQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLPlainExecutor.sqlQuery(Function,SQLResultAdapter)
but you don't need to compose it with other operations.- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapter
-
sqlQuery
@CheckReturnValue public <T,R> io.smallrye.mutiny.Uni<R> sqlQuery(String statement, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
statement
- the plain SQL statement with resultsadapter
- the result adapter- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sqlQueryAndAwait
Blocking variant ofSQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
.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:
statement
- the plain SQL statement with resultsadapter
- the result adapter- Returns:
- the R instance produced by the operation.
-
sqlQueryAndForget
Variant ofSQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLPlainExecutor.sqlQuery(String,SQLResultAdapter)
but you don't need to compose it with other operations.- Parameters:
statement
- the plain SQL statement with resultsadapter
- the result adapter
-
batch
@CheckReturnValue public 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
public BatchResult batchAndAwait(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Blocking variant ofSQLBatchExecutor.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 functionbindBatchValues
- bind batch values- Returns:
- the BatchResult instance produced by the operation.
-
batchAndForget
public void batchAndForget(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Variant ofSQLBatchExecutor.batch(Function,BindBatchValues)
that ignores the result of the operation.This method subscribes on the result of
SQLBatchExecutor.batch(Function,BindBatchValues)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBatchExecutor.batch(Function,BindBatchValues)
but you don't need to compose it with other operations.- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch values
-
batch
@CheckReturnValue public 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 ofSQLBatchExecutor.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
- querybindBatchValues
- bind batch values- Returns:
- the BatchResult instance produced by the operation.
-
batchAndForget
Variant ofSQLBatchExecutor.batch(Query,BindBatchValues)
that ignores the result of the operation.This method subscribes on the result of
SQLBatchExecutor.batch(Query,BindBatchValues)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBatchExecutor.batch(Query,BindBatchValues)
but you don't need to compose it with other operations.- Parameters:
query
- querybindBatchValues
- bind batch values
-
routine
@CheckReturnValue public <T> io.smallrye.mutiny.Uni<T> routine(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction) -
routineAndAwait
-
routineAndForget
-
routine
@CheckReturnValue public <T> io.smallrye.mutiny.Uni<T> routine(org.jooq.Routine<T> routine) -
routineAndAwait
public <T> T routineAndAwait(org.jooq.Routine<T> routine) -
routineAndForget
public <T> void routineAndForget(org.jooq.Routine<T> routine) -
routineResult
@CheckReturnValue public <T> io.smallrye.mutiny.Uni<RoutineResult> routineResult(org.jooq.Routine<T> routine) -
routineResultAndAwait
-
routineResultAndForget
public <T> void routineResultAndForget(org.jooq.Routine<T> routine) -
routineResultSet
@CheckReturnValue public <T,X, io.smallrye.mutiny.Uni<R> routineResultSetR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) -
routineResultSetAndAwait
public <T,X, R routineResultSetAndAwaitR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) -
routineResultSetAndForget
public <T,X, void routineResultSetAndForgetR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) -
newInstance
-