Package io.github.zero88.jooqx
Interface JooqxSession
- 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
,SQLSessionExecutor<io.vertx.sqlclient.SqlConnection,
,io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxSession> SQLStatementExecutor
public interface JooqxSession
extends JooqxConn, SQLSessionExecutor<io.vertx.sqlclient.SqlConnection,io.vertx.sqlclient.Tuple,JooqxPreparedQuery,JooqxResultCollector,JooqxSession>
Represents for a reactive SQL session executor
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription<R> io.vertx.core.Future<R>
perform
(@NotNull Function<JooqxSession, io.vertx.core.Future<R>> sessionFn) LikeSQLSessionExecutor.perform(Function, Handler)
but returns aFuture
of the asynchronous resultdefault <R> void
perform
(@NotNull Function<JooqxSession, io.vertx.core.Future<R>> sessionFn, @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Perform the session codedefault @NotNull JooqxSession
session()
Open session executorMethods inherited from interface io.github.zero88.jooqx.JooqxConn
dsl, errorConverter, preparedQuery, resultCollector, sqlClient, transaction, 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
-
session
Description copied from interface:SQLExecutor
Open session executor- Specified by:
session
in interfaceJooqxConn
- Specified by:
session
in interfaceSQLExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector> - Returns:
- transaction executor
- See Also:
-
perform
default <R> void perform(@NotNull @NotNull Function<JooqxSession, io.vertx.core.Future<R>> sessionFn, @NotNull @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Description copied from interface:SQLSessionExecutor
Perform the session code- Specified by:
perform
in interfaceSQLSessionExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxSession> - Type Parameters:
R
- Type of result- Parameters:
sessionFn
- session functionhandler
- handler
-
perform
<R> io.vertx.core.Future<R> perform(@NotNull @NotNull Function<JooqxSession, io.vertx.core.Future<R>> sessionFn) Description copied from interface:SQLSessionExecutor
LikeSQLSessionExecutor.perform(Function, Handler)
but returns aFuture
of the asynchronous result- Specified by:
perform
in interfaceSQLSessionExecutor<io.vertx.sqlclient.SqlConnection,
io.vertx.sqlclient.Tuple, JooqxPreparedQuery, JooqxResultCollector, JooqxSession> - Type Parameters:
R
- Type of result- Parameters:
sessionFn
- session function- Returns:
- a
Future
of the asynchronous result
-