Class JooqxSession
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.<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 ofSQLBatchResultExecutor.batchResult(Function,BindBatchValues,SQLResultListAdapter)
.<T,
R> BatchReturningResult<R> batchResultAndAwait
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofSQLBatchResultExecutor.batchResult(Query,BindBatchValues,SQLResultListAdapter)
.<T,
R> void batchResultAndForget
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofSQLBatchResultExecutor.batchResult(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 ofSQLBatchResultExecutor.batchResult(Query,BindBatchValues,SQLResultListAdapter)
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 JooqxSession
newInstance
(JooqxSession arg) <R> io.smallrye.mutiny.Uni<R>
perform
(Function<JooqxSession, io.smallrye.mutiny.Uni<R>> sessionFn) <R> R
performAndAwait
(Function<JooqxSession, io.smallrye.mutiny.Uni<R>> sessionFn) <R> void
performAndForget
(Function<JooqxSession, io.smallrye.mutiny.Uni<R>> sessionFn) <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) 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()
Methods inherited from class io.github.zero88.jooqx.mutiny.JooqxConn
builder, dsl, errorConverter, newInstance, preparedQuery, resultCollector, sqlClient, transaction, typeMapperRegistry, vertx
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JooqxSession
-
JooqxSession
-
-
Method Details
-
getDelegate
- Overrides:
getDelegate
in classJooqxConn
-
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. -
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).
- Overrides:
sqlAndAwait
in classJooqxConn
- 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.- Overrides:
sqlAndForget
in classJooqxConn
- Parameters:
statement
- the plain SQL statement without result
-
session
-
perform
@CheckReturnValue public <R> io.smallrye.mutiny.Uni<R> perform(Function<JooqxSession, io.smallrye.mutiny.Uni<R>> sessionFn) -
performAndAwait
-
performAndForget
-
batchResult
@CheckReturnValue public <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.- Overrides:
batchResult
in classJooqxConn
- 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
public <T,R> BatchReturningResult<R> batchResultAndAwait(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofSQLBatchResultExecutor.batchResult(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).
- Overrides:
batchResultAndAwait
in classJooqxConn
- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-- Returns:
- the BatchReturningResult
instance produced by the operation.
-
batchResultAndForget
public <T,R> void batchResultAndForget(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofSQLBatchResultExecutor.batchResult(Function,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLBatchResultExecutor.batchResult(Function,BindBatchValues,SQLResultListAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBatchResultExecutor.batchResult(Function,BindBatchValues,SQLResultListAdapter)
but you don't need to compose it with other operations.- Overrides:
batchResultAndForget
in classJooqxConn
- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-
-
batchResult
@CheckReturnValue public <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.- Overrides:
batchResult
in classJooqxConn
- 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
public <T,R> BatchReturningResult<R> batchResultAndAwait(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Blocking variant ofSQLBatchResultExecutor.batchResult(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).
- Overrides:
batchResultAndAwait
in classJooqxConn
- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter- Returns:
- the BatchReturningResult
instance produced by the operation.
-
batchResultAndForget
public <T,R> void batchResultAndForget(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Variant ofSQLBatchResultExecutor.batchResult(Query,BindBatchValues,SQLResultListAdapter)
that ignores the result of the operation.This method subscribes on the result of
SQLBatchResultExecutor.batchResult(Query,BindBatchValues,SQLResultListAdapter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSQLBatchResultExecutor.batchResult(Query,BindBatchValues,SQLResultListAdapter)
but you don't need to compose it with other operations.- Overrides:
batchResultAndForget
in classJooqxConn
- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter
-
routine
@CheckReturnValue public <T> io.smallrye.mutiny.Uni<T> routine(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction) -
routineAndAwait
- Overrides:
routineAndAwait
in classJooqxConn
-
routineAndForget
- Overrides:
routineAndForget
in classJooqxConn
-
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) - Overrides:
routineAndAwait
in classJooqxConn
-
routineAndForget
public <T> void routineAndForget(org.jooq.Routine<T> routine) - Overrides:
routineAndForget
in classJooqxConn
-
routineResult
@CheckReturnValue public <T> io.smallrye.mutiny.Uni<RoutineResult> routineResult(org.jooq.Routine<T> routine) - Overrides:
routineResult
in classJooqxConn
-
routineResultAndAwait
- Overrides:
routineResultAndAwait
in classJooqxConn
-
routineResultAndForget
public <T> void routineResultAndForget(org.jooq.Routine<T> routine) - Overrides:
routineResultAndForget
in classJooqxConn
-
routineResultSet
@CheckReturnValue public <T,X, io.smallrye.mutiny.Uni<R> routineResultSetR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) - Overrides:
routineResultSet
in classJooqxConn
-
routineResultSetAndAwait
public <T,X, R routineResultSetAndAwaitR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) - Overrides:
routineResultSetAndAwait
in classJooqxConn
-
routineResultSetAndForget
public <T,X, void routineResultSetAndForgetR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter) - Overrides:
routineResultSetAndForget
in classJooqxConn
-
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. -
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).
- Overrides:
blockAndAwait
in classJooqxConn
- 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.- Overrides:
blockAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
blockAndAwait
in classJooqxConn
- 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.- Overrides:
blockAndForget
in classJooqxConn
- Parameters:
blockQuery
- the block of SQL queries
-
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. -
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).
- Overrides:
sqlAndAwait
in classJooqxConn
- 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.- Overrides:
sqlAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
sqlQueryAndAwait
in classJooqxConn
- 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.- Overrides:
sqlQueryAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
sqlQueryAndAwait
in classJooqxConn
- 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.- Overrides:
sqlQueryAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
batchAndAwait
in classJooqxConn
- 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.- Overrides:
batchAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
batchAndAwait
in classJooqxConn
- 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.- Overrides:
batchAndForget
in classJooqxConn
- Parameters:
query
- querybindBatchValues
- bind batch values
-
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. -
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).
- Overrides:
executeAndAwait
in classJooqxConn
- 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.- Overrides:
executeAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
executeAndAwait
in classJooqxConn
- 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.- Overrides:
executeAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
executeAndAwait
in classJooqxConn
- 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.- Overrides:
executeAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
executeAndAwait
in classJooqxConn
- 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.- Overrides:
executeAndForget
in classJooqxConn
- Parameters:
statement
- a row count query statement
-
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. -
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).
- Overrides:
ddlAndAwait
in classJooqxConn
- 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.- Overrides:
ddlAndForget
in classJooqxConn
- 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. -
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).
- Overrides:
ddlAndAwait
in classJooqxConn
- 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.- Overrides:
ddlAndForget
in classJooqxConn
- Parameters:
statement
- DDL statement
-
newInstance
-