public static class Ux.Jooq extends Object
public Future 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 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)
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)
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)
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)
clazz - The class of `VertxDao` that has been generated by jooq toolkey - the key configuration in vertx-jooq.yml such as above "orbit", "provider"Copyright © 2020. All rights reserved.