Package io.github.zero88.jooqx
Interface JooqxTx
- All Superinterfaces:
HasExecutor
,JooqDSLProvider
,JooqxBase<io.vertx.sqlclient.SqlConnection>
,JooqxConn
,SQLBatchExecutor
,SQLBatchResultExecutor
,SQLBlockExecutor
,SQLDDLExecutor
,SQLDMLExecutor
,SQLDQLExecutor
,SQLExecutor<io.vertx.sqlclient.SqlConnection,
,io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector> SQLPlainExecutor
,SQLRoutineExecutor
,SQLStatementExecutor
,SQLTxExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxTx>
public interface JooqxTx
extends JooqxConn, SQLTxExecutor<io.vertx.sqlclient.SqlConnection,io.vertx.sqlclient.Tuple,JooqxPreparedQuery,JooqxResultCollector,JooqxTx>
Represents for a reactive SQL transaction executor
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription<X> io.vertx.core.Future<X>
LikeSQLTxExecutor.run(Function, Handler)
but returns aFuture
of the asynchronous resultdefault <X> void
run
(@NotNull Function<JooqxTx, io.vertx.core.Future<X>> transactionFn, @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<X>> handler) Run the transactional codedefault @NotNull JooqxTx
Open transaction executorMethods inherited from interface io.github.zero88.jooqx.JooqxConn
dsl, errorConverter, preparedQuery, resultCollector, session, sqlClient, typeMapperRegistry, vertx
Methods inherited from interface io.github.zero88.jooqx.SQLBatchExecutor
batch, batch, batch, batch
Methods inherited from interface io.github.zero88.jooqx.SQLBatchResultExecutor
batchResult, batchResult, batchResult, batchResult
Methods inherited from interface io.github.zero88.jooqx.SQLBlockExecutor
block, block, block, block
Methods inherited from interface io.github.zero88.jooqx.SQLDDLExecutor
ddl, ddl, ddl, ddl
Methods inherited from interface io.github.zero88.jooqx.SQLDMLExecutor
delete, delete, delete, delete, deleteQuery, deleteQuery, deleteQuery, deleteQuery, insert, insert, insert, insert, insertQuery, insertQuery, insertQuery, insertQuery, update, update, update, update, updateQuery, updateQuery, updateQuery, updateQuery
Methods inherited from interface io.github.zero88.jooqx.SQLDQLExecutor
fetchCount, fetchCount, fetchCount, fetchCount, fetchExists, fetchExists, fetchExists, fetchExists, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonArray, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonObject, fetchJsonRecord, fetchJsonRecord, fetchJsonRecord, fetchJsonRecord, fetchJsonRecords, fetchJsonRecords, fetchJsonRecords, fetchJsonRecords, fetchMany, fetchMany, fetchMany, fetchMany, fetchOne, fetchOne, fetchOne, fetchOne
Methods inherited from interface io.github.zero88.jooqx.SQLExecutor
executor, routine, routineResult, routineResultSet
Methods inherited from interface io.github.zero88.jooqx.SQLPlainExecutor
sql, sql, sql, sql, sqlQuery, sqlQuery, sqlQuery, sqlQuery
Methods inherited from interface io.github.zero88.jooqx.SQLRoutineExecutor
routine, routine, routine, routineResult, routineResultSet
-
Method Details
-
transaction
Description copied from interface:SQLExecutor
Open transaction executor- Specified by:
transaction
in interfaceJooqxConn
- Specified by:
transaction
in interfaceSQLExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector> - Returns:
- transaction executor
- See Also:
-
run
default <X> void run(@NotNull @NotNull Function<JooqxTx, io.vertx.core.Future<X>> transactionFn, @NotNull @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<X>> handler) Description copied from interface:SQLTxExecutor
Run the transactional code- Specified by:
run
in interfaceSQLTxExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxTx> - Type Parameters:
X
- Type of result- Parameters:
transactionFn
- transaction functionhandler
- handler
-
run
<X> io.vertx.core.Future<X> run(@NotNull @NotNull Function<JooqxTx, io.vertx.core.Future<X>> transactionFn) Description copied from interface:SQLTxExecutor
LikeSQLTxExecutor.run(Function, Handler)
but returns aFuture
of the asynchronous result- Specified by:
run
in interfaceSQLTxExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxTx> - Type Parameters:
X
- Type of result- Parameters:
transactionFn
- transaction function- Returns:
- a
Future
of the asynchronous result
-