Package io.github.zero88.jooqx
Interface SQLSessionExecutor<S,B,P extends SQLPreparedQuery<B>,C extends SQLResultCollector,E extends SQLExecutor<S,B,P,C>>
- Type Parameters:
S
- Type of Vertx SQL clientB
- Type of Vertx query param holderP
- Type of SQL prepare queryC
- Type of SQL result collectorE
- Type of jOOQ.x executor
- All Known Subinterfaces:
JooqxSession
,LegacyJooqxSession
public interface SQLSessionExecutor<S,B,P extends SQLPreparedQuery<B>,C extends SQLResultCollector,E extends SQLExecutor<S,B,P,C>>
Represents for SQL session executor
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription<X> io.vertx.core.Future<X>
Likeperform(Function, Handler)
but returns aFuture
of the asynchronous result<X> void
perform
(@NotNull Function<E, io.vertx.core.Future<X>> sessionFn, @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<X>> handler) Perform the session code
-
Method Details
-
perform
<X> void perform(@NotNull @NotNull Function<E, io.vertx.core.Future<X>> sessionFn, @NotNull @NotNull io.vertx.core.Handler<io.vertx.core.AsyncResult<X>> handler) Perform the session code- Type Parameters:
X
- Type of result- Parameters:
sessionFn
- session functionhandler
- handler
-
perform
<X> io.vertx.core.Future<X> perform(@NotNull @NotNull Function<E, io.vertx.core.Future<X>> sessionFn) Likeperform(Function, Handler)
but returns aFuture
of the asynchronous result- Type Parameters:
X
- Type of result- Parameters:
sessionFn
- session function- Returns:
- a
Future
of the asynchronous result
-