Package io.github.zero88.jooqx.reactivex
Class Jooqx
java.lang.Object
io.github.zero88.jooqx.reactivex.Jooqx
Represents for an executor that executes
jOOQ query
on Vertx reactive SQL pool
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
batch
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Batch executevoid
batch
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchResult>> handler) Batch executevoid
batch
(org.jooq.Query query, BindBatchValues bindBatchValues) Batch executevoid
batch
(org.jooq.Query query, BindBatchValues bindBatchValues, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchResult>> handler) Batch execute<T,
R> void batchResult
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch execute<T,
R> void batchResult
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchReturningResult<R>>> handler) Result batch execute<T,
R> void batchResult
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive results<T,
R> void batchResult
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchReturningResult<R>>> handler) Execute batch statements then receive resultsvoid
block
(BlockQuery blockQuery) Block executevoid
block
(BlockQuery blockQuery, io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockResult>> handler) Block executevoid
block
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Block executevoid
block
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn, io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockResult>> handler) Block executestatic JooqxBuilder
builder()
Create a buildervoid
Execute DDL statementvoid
ddl
(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute DDL statementvoid
ddl
(org.jooq.DDLQuery statement) Execute DDL statementvoid
Execute DDL statementorg.jooq.DSLContext
dsl()
boolean
<T,
R> void execute
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async result<T,
R> void execute
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) ExecutejOOQ query
then return async resultvoid
Execute row count query statementvoid
execute
(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute row count query statement<T,
R> void execute
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async result<T,
R> void execute
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) ExecutejOOQ query
then return async resultvoid
execute
(org.jooq.RowCountQuery statement) Execute row count query statementvoid
execute
(org.jooq.RowCountQuery statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute row count query statementint
hashCode()
static Jooqx
newInstance
(Jooqx arg) <T> void
<T> void
routine
(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler) <T> io.vertx.core.Future<T>
routine
(org.jooq.Routine<T> routine, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler) <T> void
routineResult
(org.jooq.Routine<T> routine) <T> void
routineResult
(org.jooq.Routine<T> routine, io.vertx.core.Handler<io.vertx.core.AsyncResult<RoutineResult>> handler) <T,
X, R> io.vertx.core.Future<R> routineResultSet
(org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) io.reactivex.Single<BatchResult>
rxBatch
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Batch executeio.reactivex.Single<BatchResult>
rxBatch
(org.jooq.Query query, BindBatchValues bindBatchValues) Batch execute<T,
R> io.reactivex.Single<BatchReturningResult<R>> rxBatchResult
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch execute<T,
R> io.reactivex.Single<BatchReturningResult<R>> rxBatchResult
(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive resultsio.reactivex.Single<BlockResult>
rxBlock
(BlockQuery blockQuery) Block executeio.reactivex.Single<BlockResult>
rxBlock
(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Block executeio.reactivex.Single<Integer>
Execute DDL statementio.reactivex.Single<Integer>
rxDdl
(org.jooq.DDLQuery statement) Execute DDL statement<T,
R> io.reactivex.Maybe<R> rxExecute
(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultio.reactivex.Single<Integer>
Execute row count query statement<T,
R> io.reactivex.Maybe<R> rxExecute
(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async resultio.reactivex.Single<Integer>
rxExecute
(org.jooq.RowCountQuery statement) Execute row count query statement<T> io.reactivex.Single<T>
<T> io.reactivex.Single<RoutineResult>
rxRoutineResult
(org.jooq.Routine<T> routine) io.reactivex.Single<Integer>
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)io.reactivex.Single<Integer>
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)<T,
R> io.reactivex.Maybe<R> rxSqlQuery
(String statement, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> io.reactivex.Maybe<R> rxSqlQuery
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)session()
void
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)void
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)void
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)void
sql
(Function<org.jooq.DSLContext, String> sqlFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)io.vertx.reactivex.sqlclient.Pool
<T,
R> void sqlQuery
(String statement, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> void sqlQuery
(String statement, SQLResultAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> void sqlQuery
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)<T,
R> void sqlQuery
(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Execute the plain SQL statement with results (e.g: SELECT, etc...)toString()
io.vertx.reactivex.core.Vertx
vertx()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Jooqx
-
Jooqx
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getDelegate
-
sql
public void sql(String statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
statement
- the plain SQL statement without resulthandler
- async result handler
-
sql
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
statement
- the plain SQL statement without result
-
rxSql
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
statement
- the plain SQL statement without result- Returns:
-
builder
Create a builder- Returns:
- jooqx builder
-
vertx
public io.vertx.reactivex.core.Vertx vertx() -
sqlClient
public io.vertx.reactivex.sqlclient.Pool sqlClient()- Returns:
-
preparedQuery
- Returns:
-
resultCollector
- Returns:
-
transaction
- Returns:
-
session
- Returns:
-
block
public void block(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn, io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockResult>> handler) Block execute- Parameters:
blockQueryFn
- the block of SQL queries functionhandler
- the async result handler
-
block
Block execute- Parameters:
blockQueryFn
- the block of SQL queries function
-
rxBlock
public io.reactivex.Single<BlockResult> rxBlock(Function<org.jooq.DSLContext, BlockQuery> blockQueryFn) Block execute- Parameters:
blockQueryFn
- the block of SQL queries function- Returns:
-
block
public void block(BlockQuery blockQuery, io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockResult>> handler) Block execute- Parameters:
blockQuery
- the block of SQL querieshandler
- the async result handler
-
block
Block execute- Parameters:
blockQuery
- the block of SQL queries
-
rxBlock
Block execute- Parameters:
blockQuery
- the block of SQL queries- Returns:
-
ddl
public void ddl(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute DDL statement- Parameters:
ddlFunction
- DDL function produces DDL statementhandler
- async result handler
-
ddl
Execute DDL statement- Parameters:
ddlFunction
- DDL function produces DDL statement
-
rxDdl
public io.reactivex.Single<Integer> rxDdl(Function<org.jooq.DSLContext, org.jooq.DDLQuery> ddlFunction) Execute DDL statement- Parameters:
ddlFunction
- DDL function produces DDL statement- Returns:
-
ddl
public void ddl(org.jooq.DDLQuery statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute DDL statement- Parameters:
statement
- DDL statementhandler
- async result handler
-
ddl
public void ddl(org.jooq.DDLQuery statement) Execute DDL statement- Parameters:
statement
- DDL statement
-
rxDdl
Execute DDL statement- Parameters:
statement
- DDL statement- Returns:
-
execute
public <T,R> void execute(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) ExecutejOOQ query
then return async result- Parameters:
queryFunction
- the jOOQ query functionresultAdapter
- the result adapterhandler
- the async result handler
-
execute
public <T,R> void execute(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async result- Parameters:
queryFunction
- the jOOQ query functionresultAdapter
- the result adapter
-
rxExecute
public <T,R> io.reactivex.Maybe<R> rxExecute(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async result- Parameters:
queryFunction
- the jOOQ query functionresultAdapter
- the result adapter- Returns:
-
execute
public <T,R> void execute(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) ExecutejOOQ query
then return async result- Parameters:
query
- the jOOQ queryresultAdapter
- the result adapterhandler
- the async result handler
-
execute
ExecutejOOQ query
then return async result- Parameters:
query
- the jOOQ queryresultAdapter
- the result adapter
-
rxExecute
public <T,R> io.reactivex.Maybe<R> rxExecute(org.jooq.Query query, SQLResultAdapter<T, R> resultAdapter) ExecutejOOQ query
then return async result- Parameters:
query
- the jOOQ queryresultAdapter
- the result adapter- Returns:
-
execute
public void execute(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute row count query statement- Parameters:
rowCountQueryFn
- A function produces row count query statementhandler
- async result handler
-
execute
Execute row count query statement- Parameters:
rowCountQueryFn
- A function produces row count query statement
-
rxExecute
public io.reactivex.Single<Integer> rxExecute(Function<org.jooq.DSLContext, org.jooq.RowCountQuery> rowCountQueryFn) Execute row count query statement- Parameters:
rowCountQueryFn
- A function produces row count query statement- Returns:
-
execute
public void execute(org.jooq.RowCountQuery statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute row count query statement- Parameters:
statement
- a row count query statementhandler
- async result handler
-
execute
public void execute(org.jooq.RowCountQuery statement) Execute row count query statement- Parameters:
statement
- a row count query statement
-
rxExecute
Execute row count query statement- Parameters:
statement
- a row count query statement- Returns:
-
sql
public void sql(Function<org.jooq.DSLContext, String> sqlFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement without resulthandler
- async result handler
-
sql
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement without result
-
rxSql
Execute the plain SQL statement without result (e.g: SET, INSERT, UPDATE, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement without result- Returns:
-
sqlQuery
public <T,R> void sqlQuery(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapterhandler
- async result handler
-
sqlQuery
public <T,R> void sqlQuery(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapter
-
rxSqlQuery
public <T,R> io.reactivex.Maybe<R> rxSqlQuery(Function<org.jooq.DSLContext, String> sqlFunction, SQLResultAdapter<T, R> adapter) Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
sqlFunction
- the plain SQL function products a plain SQL statement with resultsadapter
- the result adapter- Returns:
-
sqlQuery
public <T,R> void sqlQuery(String statement, SQLResultAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
statement
- the plain SQL statement with resultsadapter
- the result adapterhandler
- async result handler
-
sqlQuery
Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
statement
- the plain SQL statement with resultsadapter
- the result adapter
-
rxSqlQuery
Execute the plain SQL statement with results (e.g: SELECT, etc...)- Parameters:
statement
- the plain SQL statement with resultsadapter
- the result adapter- Returns:
-
batch
public void batch(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchResult>> handler) Batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valueshandler
- async result handler
-
batch
public void batch(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch values
-
rxBatch
public io.reactivex.Single<BatchResult> rxBatch(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues) Batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch values- Returns:
-
batch
public void batch(org.jooq.Query query, BindBatchValues bindBatchValues, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchResult>> handler) Batch execute- Parameters:
query
- querybindBatchValues
- bind batch valueshandler
- async result handler
-
batch
Batch execute- Parameters:
query
- querybindBatchValues
- bind batch values
-
rxBatch
public io.reactivex.Single<BatchResult> rxBatch(org.jooq.Query query, BindBatchValues bindBatchValues) Batch execute- Parameters:
query
- querybindBatchValues
- bind batch values- Returns:
-
batchResult
public <T,R> void batchResult(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchReturningResult<R>>> handler) Result batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-handler
- async result handler
-
batchResult
public <T,R> void batchResult(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-
-
rxBatchResult
public <T,R> io.reactivex.Single<BatchReturningResult<R>> rxBatchResult(Function<org.jooq.DSLContext, org.jooq.Query> queryFunction, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Result batch execute- Parameters:
queryFunction
- query functionbindBatchValues
- bind batch valuesadapter
-- Returns:
-
batchResult
public <T,R> void batchResult(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<BatchReturningResult<R>>> handler) Execute batch statements then receive results- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapterhandler
- async result handler
-
batchResult
public <T,R> void batchResult(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive results- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter
-
rxBatchResult
public <T,R> io.reactivex.Single<BatchReturningResult<R>> rxBatchResult(org.jooq.Query query, BindBatchValues bindBatchValues, SQLResultListAdapter<T, R> adapter) Execute batch statements then receive results- Parameters:
query
- jOOQ querybindBatchValues
- bind batch valuesadapter
- result adapter- Returns:
-
routine
public <T> void routine(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler) -
routine
-
rxRoutine
public <T> io.reactivex.Single<T> rxRoutine(Function<org.jooq.DSLContext, org.jooq.Routine<T>> routineFunction) -
routine
public <T> io.vertx.core.Future<T> routine(org.jooq.Routine<T> routine, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler) -
routineResult
public <T> void routineResult(org.jooq.Routine<T> routine, io.vertx.core.Handler<io.vertx.core.AsyncResult<RoutineResult>> handler) -
routineResult
public <T> void routineResult(org.jooq.Routine<T> routine) -
rxRoutineResult
-
routineResultSet
public <T,X, io.vertx.core.Future<R> routineResultSetR> (org.jooq.Routine<T> routine, SQLResultAdapter<X, R> resultAdapter, io.vertx.core.Handler<io.vertx.core.AsyncResult<R>> handler) -
dsl
public org.jooq.DSLContext dsl() -
errorConverter
-
typeMapperRegistry
-
newInstance
-