Package io.vertx.up.unity
Class Ux.Jooq
java.lang.Object
io.vertx.up.unity.Ux.Jooq
- Enclosing class:
- Ux
Inner class of `Jooq` tool of Jooq Engine operations based on pojo here.
When developers want to access database and select zero default implementation.
- Author:
- lang
public FuturefetchAsync(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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UxJooqGet reference of UxJooq that bind to Dao class, this method access standard database, the configured position is `vertx-jooq.yml`static UxJooqThe overloading method of above `on(Class<?>)` method here.static UxJooqThe overloading method of above `on(Class<?>)` method here.static UxJooqGet 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.
-
Constructor Details
-
Jooq
public Jooq()
-
-
Method Details
-
ons
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" ......- Parameters:
clazz- The class of `VertxDao` that has been generated by jooq tool- Returns:
- UxJooq reference that has been initialized
-
on
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"- Parameters:
clazz- The class of `VertxDao` that has been generated by jooq tool- Returns:
- UxJooq reference that has been initialized
-
on
The overloading method of above `on(Class<?>)` method here.- Parameters:
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.- Returns:
- UxJooq reference that has been initialized
-
on
The overloading method of above `on(Class<?>)` method here.- Parameters:
clazz- The class of `VertxDao` that has been generated by jooq toolkey- the key configuration in vertx-jooq.yml such as above "orbit", "provider"- Returns:
- UxJooq reference that has been initialized
-