Package io.github.zero88.jooqx.adapter
Class SelectJsonArray
java.lang.Object
io.github.zero88.jooqx.adapter.SelectJsonArray
- All Implemented Interfaces:
SQLResultAdapter<io.vertx.core.json.JsonObject,
io.vertx.core.json.JsonArray>
-
Constructor Summary
ConstructorDescriptionSelectJsonArray
(@NotNull RecordFactory<? extends org.jooq.Record, io.vertx.core.json.JsonObject> recordFactory) -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.json.JsonArray
Collect list of row to an expectation resultRecordFactory<? extends org.jooq.Record,
io.vertx.core.json.JsonObject> @NotNull SelectStrategy
strategy()
-
Constructor Details
-
SelectJsonArray
public SelectJsonArray(@NotNull @NotNull RecordFactory<? extends org.jooq.Record, io.vertx.core.json.JsonObject> recordFactory)
-
-
Method Details
-
strategy
-
collect
public io.vertx.core.json.JsonArray collect(@NotNull @NotNull List<io.vertx.core.json.JsonObject> jsonObjects) Description copied from interface:SQLResultAdapter
Collect list of row to an expectation result- Parameters:
jsonObjects
- row list- Returns:
- an expectation result
-
recordFactory
- Specified by:
recordFactory
in interfaceSQLResultAdapter<ROW,
RESULT> - Returns:
- record factory
- See Also:
-