Package io.github.zero88.jooqx
Interface DSLAdapter
public interface DSLAdapter
DSL adapter
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectCount
Fetch countstatic SelectCount
fetchCount
(@NotNull org.jooq.TableLike<org.jooq.Record1<Integer>> table) Fetch countstatic SelectExists
Fetch existsstatic SelectExists
fetchExists
(@NotNull org.jooq.TableLike<org.jooq.Record1<Integer>> table) Fetch existsstatic SelectJsonArray
fetchJsonArray
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table) Fetch result by a table of the query context then map into json arraystatic SelectJsonArray
fetchJsonArray
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, io.vertx.core.spi.json.JsonCodec codec) Fetch result by a table of the query context then map into json arraystatic SelectOne<io.vertx.core.json.JsonObject>
fetchJsonObject
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table) Fetch one row to json objectstatic SelectOne<io.vertx.core.json.JsonObject>
fetchJsonObject
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, io.vertx.core.spi.json.JsonCodec codec) Fetch one row to json objectstatic <REC extends org.jooq.Record>
SelectOne<JsonRecord<REC>>fetchJsonRecord
(@NotNull org.jooq.TableLike<REC> table) Fetch one row to JsonRecordstatic <REC extends org.jooq.Record>
SelectList<JsonRecord<REC>>fetchJsonRecords
(@NotNull org.jooq.TableLike<REC> table) Fetch many Json recordstatic <R> SelectList<R>
fetchMany
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull Class<R> outputClass) Fetch many records by a table of the query context then map to custom type by given output classstatic SelectList<org.jooq.Record>
fetchMany
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull Collection<org.jooq.Field<?>> fields) Fetch many by a table of the query context then map into target fieldsstatic <REC extends org.jooq.Record>
SelectList<REC>fetchMany
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, REC record) Fetch many by a table of the query context then map to another record typestatic <R extends org.jooq.Record,
T extends org.jooq.Table<R>>
SelectList<R>fetchMany
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, T toTable) Fetch many by a table of the query context then map into target record that defines in target tablestatic SelectList<org.jooq.Record>
fetchMany
(org.jooq.Field<?>... fields) Fetch many records by fieldsstatic <REC extends org.jooq.Record>
SelectList<REC>fetchMany
(REC record) Fetch many records by the record definitionstatic <T extends org.jooq.Table<REC>,
REC extends org.jooq.Record>
SelectList<REC>fetchMany
(T table) Fetch manystatic <R> SelectOne<R>
fetchOne
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull Class<R> outputClass) Fetch one record by a table of the query context then map to custom type by given output classstatic SelectOne<org.jooq.Record>
fetchOne
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull Collection<org.jooq.Field<?>> fields) Fetch one record by a table of the query context then map into target fieldsstatic <REC extends org.jooq.Record>
SelectOne<REC>fetchOne
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, REC record) Fetch one record by a table of the query context then map to another record typestatic <R extends org.jooq.Record,
T extends org.jooq.Table<R>>
SelectOne<R>fetchOne
(@NotNull org.jooq.TableLike<? extends org.jooq.Record> table, T toTable) Fetch one record by a table of the query context then map into target record that defines in target tablestatic SelectOne<org.jooq.Record>
fetchOne
(org.jooq.Field<?>... fields) Fetch one record by fieldsstatic <REC extends org.jooq.Record>
SelectOne<REC>fetchOne
(REC record) Fetch one record by the record definitionstatic <T extends org.jooq.Table<REC>,
REC extends org.jooq.Record>
SelectOne<REC>fetchOne
(T table) Fetch one
-
Method Details
-
fetchCount
Fetch count- Returns:
- select count
- Since:
- 2.0.0
- See Also:
-
fetchCount
static SelectCount fetchCount(@NotNull @NotNull org.jooq.TableLike<org.jooq.Record1<Integer>> table) Fetch count- Parameters:
table
- a query table context- Returns:
- select count
- Since:
- 1.0.0
- See Also:
-
fetchExists
Fetch exists- Returns:
- select exists
- Since:
- 2.0.0
- See Also:
-
fetchExists
static SelectExists fetchExists(@NotNull @NotNull org.jooq.TableLike<org.jooq.Record1<Integer>> table) Fetch exists- Parameters:
table
- a query table context- Returns:
- select exists
- Since:
- 1.0.0
- See Also:
-
fetchJsonRecord
static <REC extends org.jooq.Record> SelectOne<JsonRecord<REC>> fetchJsonRecord(@NotNull @NotNull org.jooq.TableLike<REC> table) Fetch one row to JsonRecord- Parameters:
table
- a query table context- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
JsonRecord
-
fetchJsonObject
static SelectOne<io.vertx.core.json.JsonObject> fetchJsonObject(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table) Fetch one row to json object- Parameters:
table
- a query table context- Returns:
- select json object adapter
- Since:
- 2.0.0
-
fetchJsonObject
static SelectOne<io.vertx.core.json.JsonObject> fetchJsonObject(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, io.vertx.core.spi.json.JsonCodec codec) Fetch one row to json object- Parameters:
table
- a query table contextcodec
- a Json codec- Returns:
- select json object adapter
- Since:
- 2.0.0
- See Also:
-
JsonCodec
-
fetchOne
static <T extends org.jooq.Table<REC>,REC extends org.jooq.Record> SelectOne<REC> fetchOne(@NotNull T table) Fetch one- Type Parameters:
T
- Type of jOOQ Table in Query context- Parameters:
table
- a query table context- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
-
fetchOne
Fetch one record by the record definition- Type Parameters:
REC
- Type of output jOOQ record- Parameters:
record
- record- Returns:
- select one adapter
- Since:
- 2.0.0
- See Also:
-
Record
-
fetchOne
static <REC extends org.jooq.Record> SelectOne<REC> fetchOne(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull REC record) Fetch one record by a table of the query context then map to another record type- Type Parameters:
REC
- Type of output jOOQ record- Parameters:
table
- a query table contextrecord
- record- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Record
-
fetchOne
static SelectOne<org.jooq.Record> fetchOne(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull @NotNull Collection<org.jooq.Field<?>> fields) Fetch one record by a table of the query context then map into target fields- Parameters:
table
- a query table contextfields
- a given target fields- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Field
-
fetchOne
Fetch one record by fields- Parameters:
fields
- given fields- Returns:
- select one adapter
- Since:
- 2.0.0
- See Also:
-
Field
-
fetchOne
static <R> SelectOne<R> fetchOne(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull @NotNull Class<R> outputClass) Fetch one record by a table of the query context then map to custom type by given output class- Type Parameters:
R
- Type ot output class- Parameters:
table
- a query table contextoutputClass
- given output class- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Record
-
fetchOne
static <R extends org.jooq.Record,T extends org.jooq.Table<R>> SelectOne<R> fetchOne(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull T toTable) Fetch one record by a table of the query context then map into target record that defines in target table- Type Parameters:
R
- Type of expectation recordT
- Type of expectation table- Parameters:
table
- a query table contexttoTable
- a target table- Returns:
- select one adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
-
fetchJsonRecords
static <REC extends org.jooq.Record> SelectList<JsonRecord<REC>> fetchJsonRecords(@NotNull @NotNull org.jooq.TableLike<REC> table) Fetch many Json record- Parameters:
table
- a query table context- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
JsonRecord
-
fetchMany
static <T extends org.jooq.Table<REC>,REC extends org.jooq.Record> SelectList<REC> fetchMany(@NotNull T table) Fetch many- Type Parameters:
T
- Type of jOOQ Table in Query context- Parameters:
table
- a query table context- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Record
-
fetchMany
Fetch many records by the record definition- Type Parameters:
REC
- Type of record- Parameters:
record
- record- Returns:
- select many adapter
- Since:
- 2.0.0
- See Also:
-
Record
-
fetchMany
static <REC extends org.jooq.Record> SelectList<REC> fetchMany(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull REC record) Fetch many by a table of the query context then map to another record type- Type Parameters:
REC
- Type of record- Parameters:
table
- a query table contextrecord
- record- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Record
-
fetchMany
static SelectList<org.jooq.Record> fetchMany(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull @NotNull Collection<org.jooq.Field<?>> fields) Fetch many by a table of the query context then map into target fields- Parameters:
table
- a query table contextfields
- given fields- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
-
fetchMany
Fetch many records by fields- Parameters:
fields
- the given fields- Returns:
- select many adapter
- Since:
- 2.0.0
- See Also:
-
Field
-
fetchMany
static <R> SelectList<R> fetchMany(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull @NotNull Class<R> outputClass) Fetch many records by a table of the query context then map to custom type by given output class- Type Parameters:
R
- Type ot output class- Parameters:
table
- a query table contextoutputClass
- a given output class- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
-
fetchMany
static <R extends org.jooq.Record,T extends org.jooq.Table<R>> SelectList<R> fetchMany(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, @NotNull T toTable) Fetch many by a table of the query context then map into target record that defines in target table- Type Parameters:
R
- Type of recordT
- Type of expectation table- Parameters:
table
- a query table contexttoTable
- a target table- Returns:
- select many adapter
- Since:
- 1.0.0
- See Also:
-
TableLike
Record
-
fetchJsonArray
static SelectJsonArray fetchJsonArray(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table) Fetch result by a table of the query context then map into json array- Parameters:
table
- a query table context- Returns:
- select json array adapter
- Since:
- 2.0.0
- See Also:
-
TableLike
Record
SelectJsonArray
-
fetchJsonArray
static SelectJsonArray fetchJsonArray(@NotNull @NotNull org.jooq.TableLike<? extends org.jooq.Record> table, io.vertx.core.spi.json.JsonCodec codec) Fetch result by a table of the query context then map into json array- Parameters:
table
- a query table contextcodec
- a Json codec- Returns:
- select json array adapter
- Since:
- 2.0.0
- See Also:
-
TableLike
Record
JsonCodec
SelectJsonArray
-