Skip to content

Commit

Permalink
[#101] Change project to v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zero88 committed Apr 10, 2022
1 parent 1144c80 commit 6f61b64
Show file tree
Hide file tree
Showing 60 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqDSLProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Provides jOOQ DSL Context
*
* @see DSLContext
* @since 1.1.0
* @since 2.0.0
*/
@FunctionalInterface
public interface JooqDSLProvider {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/Jooqx.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Represents for an executor that executes {@code jOOQ query} on {@code Vertx reactive SQL pool}
*
* @see Pool
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface Jooqx extends JooqxBase<Pool> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @param <S> Type of SqlClient, can be {@code SqlConnection} or {@code Pool}
* @see SqlConnection
* @see Pool
* @since 1.1.0
* @since 2.0.0
*/
public interface JooqxBase<S extends SqlClient>
extends SQLExecutor<S, Tuple, JooqxPreparedQuery, RowSet<Row>, JooqxResultCollector>, SQLBatchResultExecutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Represents for a collector that collects {@code Vert.x SQL batch result} to an expectation output
*
* @see JooqxResultCollector
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxBatchCollector extends JooqxResultCollector, SQLBatchCollector<RowSet<Row>, RowSet<Row>> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Represents a builder that construct {@link Jooqx}
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxBuilder
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxConn.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Represents for an executor that executes {@code jOOQ query} on {@code Vertx reactive SQL client} connection
*
* @see SqlConnection
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxConn extends JooqxBase<SqlConnection> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxConnBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Represents a builder that construct {@link JooqxConn}
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxConnBuilder extends
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxPreparedQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Represents for a converter that transforms {@code jOOQ param} to {@code Vertx Reactive SQL} bind value
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxPreparedQuery extends SQLPreparedQuery<Tuple> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Represents for a collector that collects {@code Vert.x SQL result} to an expectation output
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxResultCollector extends SQLResultCollector<RowSet<Row>> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/JooqxTx.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Represents for a reactive SQL transaction executor
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface JooqxTx extends JooqxConn,
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/zero88/jooqx/LegacyJooqxBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Represents a builder that construct {@link LegacyJooqx}
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen
public interface LegacyJooqxBuilder extends
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/zero88/jooqx/SQLBatchExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface SQLBatchExecutor extends JooqDSLProvider {
* @param handler async result handler
* @see BindBatchValues
* @see BatchResult
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default void batch(@NotNull Function<DSLContext, Query> queryFunction, @NotNull BindBatchValues bindBatchValues,
Expand All @@ -42,7 +42,7 @@ default void batch(@NotNull Function<DSLContext, Query> queryFunction, @NotNull
* @param queryFunction query function
* @param bindBatchValues bind batch values
* @return a {@code Future} of the asynchronous result
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default Future<BatchResult> batch(@NotNull Function<DSLContext, Query> queryFunction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* The {@code reactive sql executor} that is adapted for {@link SqlClient} to execute batch SQL command and able to
* return the number of succeed row and row detail
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen(concrete = false)
public interface SQLBatchResultExecutor extends JooqDSLProvider {
Expand All @@ -34,7 +34,7 @@ public interface SQLBatchResultExecutor extends JooqDSLProvider {
* @see BindBatchValues
* @see SQLResultListAdapter
* @see BatchReturningResult
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default <T, R> void batchResult(@NotNull Function<DSLContext, Query> queryFunction,
Expand Down
10 changes: 5 additions & 5 deletions core/src/main/java/io/zero88/jooqx/SQLDDLExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Represents for a {@code DDL executor} that executes batch SQL command
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen(concrete = false)
public interface SQLDDLExecutor extends JooqDSLProvider {
Expand All @@ -25,7 +25,7 @@ public interface SQLDDLExecutor extends JooqDSLProvider {
*
* @param ddlFunction DDL function produces DDL statement
* @param handler async result handler
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default void ddl(@NotNull Function<DSLContext, DDLQuery> ddlFunction,
Expand All @@ -38,7 +38,7 @@ default void ddl(@NotNull Function<DSLContext, DDLQuery> ddlFunction,
*
* @param ddlFunction DDL function produces DDL statement
* @return a {@code Future} of the asynchronous result
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default Future<Integer> ddl(@NotNull Function<DSLContext, DDLQuery> ddlFunction) {
Expand All @@ -50,7 +50,7 @@ default Future<Integer> ddl(@NotNull Function<DSLContext, DDLQuery> ddlFunction)
*
* @param statement DDL statement
* @param handler async result handler
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default void ddl(@NotNull DDLQuery statement, @NotNull Handler<AsyncResult<Integer>> handler) {
Expand All @@ -62,7 +62,7 @@ default void ddl(@NotNull DDLQuery statement, @NotNull Handler<AsyncResult<Integ
*
* @param statement DDL statement
* @return a {@code Future} of the asynchronous result
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
Future<Integer> ddl(@NotNull DDLQuery statement);
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/io/zero88/jooqx/SQLQueryExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* Represents for a {@code query executor} that executes SQL command
*
* @since 1.1.0
* @since 2.0.0
*/
@VertxGen(concrete = false)
public interface SQLQueryExecutor extends JooqDSLProvider {
Expand All @@ -34,7 +34,7 @@ public interface SQLQueryExecutor extends JooqDSLProvider {
* @see Query
* @see TableLike
* @see SQLResultAdapter
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default <T, R> void execute(@NotNull Function<DSLContext, Query> queryFunction,
Expand All @@ -52,7 +52,7 @@ default <T, R> void execute(@NotNull Function<DSLContext, Query> queryFunction,
* @param queryFunction the jOOQ query function
* @param resultAdapter the result adapter
* @return a {@code Future} of the asynchronous result
* @since 1.1.0
* @since 2.0.0
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
default <T, R> Future<@Nullable R> execute(@NotNull Function<DSLContext, Query> queryFunction,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.caching=true
org.gradle.parallel=true

# Project properties --------------------------
version=1.1.0
version=2.0.0
semanticVersion=-SNAPSHOT
buildBy=local
buildHash=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @param <E> Type of jOOQ.x
* @see LegacyJooqxFacade
* @see JooqxFacade
* @since 1.1.0
* @since 2.0.0
*/
public interface BaseJooqxFacade<S, B, PQ extends SQLPreparedQuery<B>, RS, RC extends SQLResultCollector<RS>,
E extends SQLExecutor<S, B, PQ, RS, RC>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @see SQLPreparedQuery
* @see SQLResultCollector
* @see SQLExecutor
* @since 1.1.0
* @since 2.0.0
*/
public interface BaseJooqxProvider<S, B, PQ extends SQLPreparedQuery<B>, RS, RC extends SQLResultCollector<RS>,
E extends SQLExecutor<S, B, PQ, RS, RC>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* <p>
* For example: {@code H2}, {@code SQLite}
*
* @since 1.1.0
* @since 2.0.0
*/
public interface DBEmbeddedProvider extends DBProvider<String> {

Expand Down Expand Up @@ -49,7 +49,7 @@ public interface DBEmbeddedProvider extends DBProvider<String> {
/**
* Memory Database provider
*
* @since 1.1.0
* @since 2.0.0
*/
interface DBMemoryProvider extends DBEmbeddedProvider {

Expand All @@ -64,7 +64,7 @@ interface DBMemoryProvider extends DBEmbeddedProvider {
/**
* Local file database provider
*
* @since 1.1.0
* @since 2.0.0
*/
interface DBFileProvider extends DBEmbeddedProvider {

Expand Down
2 changes: 1 addition & 1 deletion spi/src/main/java/io/zero88/jooqx/provider/DBProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Provides database
*
* @param <DB> Type of database
* @since 1.1.0
* @since 2.0.0
*/
public interface DBProvider<DB> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Provides SQL error converter
*
* @see SQLErrorConverter
* @since 1.1.0
* @since 2.0.0
*/
public interface ErrorConverterProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Provides SQL dialect
*
* @see SQLDialect
* @since 1.1.0
* @since 2.0.0
*/
@FunctionalInterface
public interface HasSQLDialect {
Expand Down
6 changes: 3 additions & 3 deletions spi/src/main/java/io/zero88/jooqx/provider/JDBCExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ default JsonObject optimizeDataSourceProviderConfig(JsonObject config) {
* HikariCP extension
*
* @see HikariCPDataSourceProvider
* @since 1.1.0
* @since 2.0.0
*/
interface HikariCPExtension extends JDBCExtension<HikariCPDataSourceProvider> {

Expand Down Expand Up @@ -81,7 +81,7 @@ default JsonObject optimizeDataSourceProviderConfig(JsonObject config) {
* C3P0 extension
*
* @see C3P0DataSourceProvider
* @since 1.1.0
* @since 2.0.0
*/
interface C3P0Extension extends JDBCExtension<C3P0DataSourceProvider> {

Expand All @@ -101,7 +101,7 @@ default Class<C3P0DataSourceProvider> dataSourceProviderClass() {
* Agroal extension
*
* @see AgroalCPDataSourceProvider
* @since 1.1.0
* @since 2.0.0
*/
interface AgroalExtension extends JDBCExtension<AgroalCPDataSourceProvider> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @see Jooqx
* @see JooqxConn
* @see SqlClient
* @since 1.1.0
* @since 2.0.0
*/
public interface JooqxFacade<S extends SqlClient>
extends BaseJooqxFacade<S, Tuple, JooqxPreparedQuery, RowSet<Row>, JooqxResultCollector, JooqxBase<S>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Reactive jOOQx provider
*
* @param <S> Type of {@link SqlClient}
* @since 1.1.0
* @since 2.0.0
*/
@SuppressWarnings("unchecked")
public interface JooqxProvider<S extends SqlClient>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @param <S> Type of reactive SQL client
* @see SqlClient
* @since 1.1.0
* @since 2.0.0
*/
public interface JooqxSQLClientProvider<S extends SqlClient> extends SQLClientProvider<S> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Represents for Jooqx Legacy facade
*
* @see LegacyJooqx
* @since 1.1.0
* @since 2.0.0
*/
public interface LegacyJooqxFacade
extends BaseJooqxFacade<SQLClient, JsonArray, LegacySQLPreparedQuery, ResultSet, LegacySQLCollector, LegacyJooqx> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Legacy {@code jOOQx} provider
*
* @since 1.1.0
* @since 2.0.0
*/
public interface LegacyJooqxProvider extends
BaseJooqxProvider<SQLClient, JsonArray, LegacySQLPreparedQuery, ResultSet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @see DataSourceProvider
* @see SQLClient
* @see JDBCClient
* @since 1.1.0
* @since 2.0.0
*/
public interface LegacySQLClientProvider<P extends DataSourceProvider>
extends SQLClientProvider<SQLClient>, SQLClientOptionParser<JsonObject>, JDBCExtension<P> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* A parser helps convert raw SQL connection option to a specific SQL driver connection option
*
* @param <T> Type of SQL driver connection option
* @since 1.1.0
* @since 2.0.0
*/
public interface SQLClientOptionParser<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SQL client provider
*
* @param <S> Type of SQL client
* @since 1.1.0
* @since 2.0.0
*/
public interface SQLClientProvider<S> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Data Type mapper registry provider
*
* @see DataTypeMapperRegistry
* @since 1.1.0
* @since 2.0.0
*/
public interface TypeMapperRegistryProvider {

Expand Down
Loading

0 comments on commit 6f61b64

Please sign in to comment.