public static class Ux.Jooq extends Object
Inner class of Jooq tool of Jooq Engine operations based on pojo here. When developers want to access database and select zero default implementation.
public Future<JsonObject> fetchAsync(final User user){
return Ux.Jooq.on(UserDao.class)
.insertAsync(user)
.compose(Ux::fnJObject);
}
Here you can do database access smartly and do nothing then.
| Constructor and Description |
|---|
Jooq() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(io.vertx.core.json.JsonObject condition) |
static UxJooq |
on(Class<?> clazz)
Get reference of UxJooq that bind to Dao class, this method access standard database, the configured position is
vertx-jooq.yml |
static UxJooq |
on(Class<?> clazz,
DataPool pool)
The overloading method of above
on(Class<?>) method here. |
static UxJooq |
on(Class<?> clazz,
String key)
The overloading method of above
on(Class<?>) method here. |
static UxJooq |
ons(Class<?> clazz)
Get reference of UxJooq that bind to Dao class, this method won’t access standard database, instead it will access history database that has been configured in
vertx-jooq.yml file. |
public static UxJooq ons(Class<?> clazz)
Get reference of UxJooq that bind to Dao class, this method won’t access standard database, instead it will access history database that has been configured in vertx-jooq.yml file.
key = orbit
jooq:
orbit:
driverClassName: "com.mysql.cj.jdbc.Driver"
......
clazz - The class of VertxDao that has been generated by jooq toolpublic static UxJooq on(Class<?> clazz)
Get reference of UxJooq that bind to Dao class, this method access standard database, the configured position is vertx-jooq.yml
key = provider
jooq:
provider:
driverClassName: "com.mysql.cj.jdbc.Driver"
clazz - The class of VertxDao that has been generated by jooq toolpublic static UxJooq on(Class<?> clazz, DataPool pool)
The overloading method of above on(Class<?>) method here.
clazz - The class of VertxDao that has been generated by jooq toolpool - Input data pool reference, it provide developers to access other database in one application.public static UxJooq on(Class<?> clazz, String key)
The overloading method of above on(Class<?>) method here.
clazz - The class of VertxDao that has been generated by jooq toolkey - the key configuration in vertx-jooq.yml such as above “orbit”, “provider”public static boolean isEmpty(io.vertx.core.json.JsonObject condition)
Copyright © 2021. All rights reserved.