├── .gitignore
├── vertx-jooq-async-shared
├── src
│ └── main
│ │ └── java
│ │ └── io
│ │ └── github
│ │ └── jklingsporn
│ │ └── vertx
│ │ └── jooq
│ │ └── async
│ │ └── shared
│ │ ├── VertxPojo.java
│ │ ├── JsonArrayConverter.java
│ │ ├── JsonObjectConverter.java
│ │ └── internal
│ │ └── VertxDAOHelper.java
└── pom.xml
├── vertx-jooq-async-generate
├── src
│ ├── main
│ │ └── java
│ │ │ └── io
│ │ │ └── github
│ │ │ └── jklingsporn
│ │ │ └── vertx
│ │ │ └── jooq
│ │ │ └── async
│ │ │ └── generate
│ │ │ ├── rx
│ │ │ ├── RXAsyncGeneratorStrategy.java
│ │ │ ├── RXAsyncVertxGenerator.java
│ │ │ └── RXAsyncVertxGuiceGenerator.java
│ │ │ ├── future
│ │ │ ├── FutureAsyncGeneratorStrategy.java
│ │ │ ├── FutureAsyncVertxGuiceGenerator.java
│ │ │ └── FutureAsyncVertxGenerator.java
│ │ │ ├── classic
│ │ │ ├── ClassicAsyncGeneratorStrategy.java
│ │ │ ├── ClassicAsyncVertxGuiceGenerator.java
│ │ │ └── ClassicAsyncVertxGenerator.java
│ │ │ ├── VertxJavaWriter.java
│ │ │ └── VertxGeneratorStrategy.java
│ └── test
│ │ ├── resources
│ │ └── logback.xml
│ │ └── java
│ │ ├── io
│ │ └── github
│ │ │ └── jklingsporn
│ │ │ └── vertx
│ │ │ └── jooq
│ │ │ └── async
│ │ │ └── generate
│ │ │ ├── rx
│ │ │ ├── JsonConversionTest.java
│ │ │ ├── VertxGeneratorTest.java
│ │ │ ├── VertxSomethingCompositeDaoTest.java
│ │ │ └── RXVertxDaoTestBase.java
│ │ │ ├── future
│ │ │ ├── JsonConversionTest.java
│ │ │ ├── VertxGeneratorTest.java
│ │ │ ├── VertxDaoTestBase.java
│ │ │ └── VertxSomethingCompositeDaoTest.java
│ │ │ └── classic
│ │ │ ├── VertxGeneratorTest.java
│ │ │ ├── JsonConversionTest.java
│ │ │ ├── VertxSomethingCompositeDaoTest.java
│ │ │ └── VertxDaoTestBase.java
│ │ └── generated
│ │ ├── rx
│ │ └── async
│ │ │ └── vertx
│ │ │ ├── Tables.java
│ │ │ ├── DefaultCatalog.java
│ │ │ ├── Indexes.java
│ │ │ ├── DefaultSchema.java
│ │ │ ├── tables
│ │ │ ├── interfaces
│ │ │ │ ├── ISomethingwithoutjson.java
│ │ │ │ ├── ISomethingcomposite.java
│ │ │ │ └── ISomething.java
│ │ │ ├── pojos
│ │ │ │ ├── Somethingwithoutjson.java
│ │ │ │ └── Somethingcomposite.java
│ │ │ ├── Somethingwithoutjson.java
│ │ │ └── Somethingcomposite.java
│ │ │ └── Keys.java
│ │ ├── future
│ │ └── async
│ │ │ └── vertx
│ │ │ ├── Tables.java
│ │ │ ├── DefaultCatalog.java
│ │ │ ├── Indexes.java
│ │ │ ├── tables
│ │ │ ├── interfaces
│ │ │ │ ├── ISomethingwithoutjson.java
│ │ │ │ └── ISomethingcomposite.java
│ │ │ ├── pojos
│ │ │ │ ├── Somethingwithoutjson.java
│ │ │ │ └── Somethingcomposite.java
│ │ │ ├── daos
│ │ │ │ ├── SomethingwithoutjsonDao.java
│ │ │ │ └── SomethingcompositeDao.java
│ │ │ ├── Somethingwithoutjson.java
│ │ │ └── Somethingcomposite.java
│ │ │ ├── DefaultSchema.java
│ │ │ └── Keys.java
│ │ └── classic
│ │ └── async
│ │ └── vertx
│ │ ├── Tables.java
│ │ ├── DefaultCatalog.java
│ │ ├── Indexes.java
│ │ ├── tables
│ │ ├── interfaces
│ │ │ ├── ISomethingwithoutjson.java
│ │ │ └── ISomethingcomposite.java
│ │ ├── pojos
│ │ │ ├── Somethingwithoutjson.java
│ │ │ └── Somethingcomposite.java
│ │ ├── daos
│ │ │ └── SomethingwithoutjsonDao.java
│ │ ├── Somethingwithoutjson.java
│ │ └── Somethingcomposite.java
│ │ ├── DefaultSchema.java
│ │ └── Keys.java
└── pom.xml
├── vertx-jooq-async-classic
├── pom.xml
└── src
│ └── main
│ └── java
│ └── io
│ └── github
│ └── jklingsporn
│ └── vertx
│ └── jooq
│ └── async
│ └── classic
│ └── AsyncJooqSQLClient.java
├── vertx-jooq-async-future
├── pom.xml
└── src
│ └── main
│ └── java
│ └── io
│ └── github
│ └── jklingsporn
│ └── vertx
│ └── jooq
│ └── async
│ └── future
│ ├── AsyncJooqSQLClient.java
│ └── impl
│ └── AsyncJooqSQLClientImpl.java
├── LICENSE
└── vertx-jooq-async-rx
├── pom.xml
└── src
├── main
└── java
│ └── io
│ └── github
│ └── jklingsporn
│ └── vertx
│ └── jooq
│ └── async
│ └── rx
│ ├── util
│ ├── RXTool.java
│ └── AsyncJooqSQLClientImpl.java
│ └── AsyncJooqSQLClient.java
└── test
└── java
└── io
└── github
└── jklingsporn
└── vertx
└── jooq
└── async
└── rx
└── util
└── RXToolTest.java
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | *.iml
3 | *.iws
4 | .vertx/
5 | target/
--------------------------------------------------------------------------------
/vertx-jooq-async-shared/src/main/java/io/github/jklingsporn/vertx/jooq/async/shared/VertxPojo.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.shared;
2 |
3 | /**
4 | * Created by jensklingsporn on 13.06.17.
5 | */
6 | public interface VertxPojo {
7 |
8 | public VertxPojo fromJson(io.vertx.core.json.JsonObject json);
9 |
10 | public io.vertx.core.json.JsonObject toJson();
11 | }
12 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/rx/RXAsyncGeneratorStrategy.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.rx;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.VertxGeneratorStrategy;
4 |
5 | public class RXAsyncGeneratorStrategy extends VertxGeneratorStrategy {
6 |
7 | public RXAsyncGeneratorStrategy() {
8 | super(RXAsyncVertxGenerator.VERTX_DAO_NAME);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/resources/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | System.out
6 |
7 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/vertx-jooq-async-shared/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | vertx-jooq-async
7 | io.github.jklingsporn
8 | 0.4
9 |
10 | 4.0.0
11 | jar
12 | vertx-jooq-async-shared
13 |
14 |
15 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/future/FutureAsyncGeneratorStrategy.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.future;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.VertxGeneratorStrategy;
4 |
5 | /**
6 | * Created by jensklingsporn on 25.10.16.
7 | *
8 | * We need this class to let the DAOs implements VertxDAO.
9 | * Unfortunately we can not get the type easily, that's why we have to
10 | * set the placeholder.
11 | */
12 | public class FutureAsyncGeneratorStrategy extends VertxGeneratorStrategy {
13 |
14 | public FutureAsyncGeneratorStrategy() {
15 | super(FutureAsyncVertxGenerator.VERTX_DAO_NAME);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/classic/ClassicAsyncGeneratorStrategy.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.classic;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.VertxGeneratorStrategy;
4 |
5 | /**
6 | * Created by jensklingsporn on 25.10.16.
7 | *
8 | * We need this class to let the DAOs implements VertxDAO.
9 | * Unfortunately we can not get the type easily, that's why we have to
10 | * set the placeholder.
11 | */
12 | public class ClassicAsyncGeneratorStrategy extends VertxGeneratorStrategy {
13 |
14 | public ClassicAsyncGeneratorStrategy() {
15 | super(ClassicAsyncVertxGenerator.VERTX_DAO_NAME);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/vertx-jooq-async-classic/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | vertx-jooq-async
7 | io.github.jklingsporn
8 | 0.4
9 |
10 | 4.0.0
11 | jar
12 | vertx-jooq-async-classic
13 |
14 |
15 |
16 | io.github.jklingsporn
17 | vertx-jooq-async-shared
18 | ${project.version}
19 |
20 |
21 |
--------------------------------------------------------------------------------
/vertx-jooq-async-future/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | vertx-jooq-async
7 | io.github.jklingsporn
8 | 0.4
9 |
10 | 4.0.0
11 |
12 | vertx-jooq-async-future
13 |
14 |
15 | me.escoffier.vertx
16 | vertx-completable-future
17 | 0.1.1
18 |
19 |
20 | io.github.jklingsporn
21 | vertx-jooq-async-shared
22 | ${project.version}
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/rx/JsonConversionTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.rx;
2 |
3 | import generated.rx.async.vertx.tables.pojos.Something;
4 | import io.vertx.core.json.JsonObject;
5 | import org.junit.Assert;
6 | import org.junit.Test;
7 |
8 | /**
9 | * Created by jensklingsporn on 22.08.17.
10 | */
11 | public class JsonConversionTest {
12 |
13 | @Test
14 | public void convertEmptyPojoToJsonShouldSucceed(){
15 | Something something = new Something();
16 | Assert.assertNotNull(something.toJson());
17 | }
18 |
19 | @Test
20 | public void convertEmptyJsonToPojoShouldSucceed(){
21 | Something something = new Something(new JsonObject());
22 | Assert.assertNotNull(something);
23 | }
24 |
25 | @Test
26 | public void convertJsonWithNullValuesToPojoShouldSucceed(){
27 | Something something = new Something();
28 | JsonObject jsonObject = something.toJson();
29 | Assert.assertNotNull(new Something(jsonObject));
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/future/JsonConversionTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.future;
2 |
3 | import generated.future.async.vertx.tables.pojos.Something;
4 | import io.vertx.core.json.JsonObject;
5 | import org.junit.Assert;
6 | import org.junit.Test;
7 |
8 | /**
9 | * Created by jensklingsporn on 22.08.17.
10 | */
11 | public class JsonConversionTest {
12 |
13 | @Test
14 | public void convertEmptyPojoToJsonShouldSucceed(){
15 | Something something = new Something();
16 | Assert.assertNotNull(something.toJson());
17 | }
18 |
19 | @Test
20 | public void convertEmptyJsonToPojoShouldSucceed(){
21 | Something something = new Something(new JsonObject());
22 | Assert.assertNotNull(something);
23 | }
24 |
25 | @Test
26 | public void convertJsonWithNullValuesToPojoShouldSucceed(){
27 | Something something = new Something();
28 | JsonObject jsonObject = something.toJson();
29 | Assert.assertNotNull(new Something(jsonObject));
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 jklingsporn
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/vertx-jooq-async-shared/src/main/java/io/github/jklingsporn/vertx/jooq/async/shared/JsonArrayConverter.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.shared;
2 |
3 | import io.vertx.core.json.JsonArray;
4 | import org.jooq.Converter;
5 |
6 | /**
7 | * Created by jensklingsporn on 04.10.16.
8 | * Use this converter to convert any varchar/String column into a JsonArray.
9 | */
10 | public class JsonArrayConverter implements Converter {
11 |
12 | private static JsonArrayConverter INSTANCE;
13 | public static JsonArrayConverter getInstance() {
14 | return INSTANCE == null ? INSTANCE = new JsonArrayConverter() : INSTANCE;
15 | }
16 |
17 | @Override
18 | public JsonArray from(String databaseObject) {
19 | return databaseObject==null?null:new JsonArray(databaseObject);
20 | }
21 |
22 | @Override
23 | public String to(JsonArray userObject) {
24 | return userObject==null?null:userObject.encode();
25 | }
26 |
27 | @Override
28 | public Class fromType() {
29 | return String.class;
30 | }
31 |
32 | @Override
33 | public Class toType() {
34 | return JsonArray.class;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vertx-jooq-async-shared/src/main/java/io/github/jklingsporn/vertx/jooq/async/shared/JsonObjectConverter.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.shared;
2 |
3 | import io.vertx.core.json.JsonObject;
4 | import org.jooq.Converter;
5 |
6 | /**
7 | * Created by jensklingsporn on 04.10.16.
8 | * Use this converter to convert any varchar/String column into a JsonObject.
9 | */
10 | public class JsonObjectConverter implements Converter {
11 |
12 | private static JsonObjectConverter INSTANCE;
13 | public static JsonObjectConverter getInstance() {
14 | return INSTANCE == null ? INSTANCE = new JsonObjectConverter() : INSTANCE;
15 | }
16 |
17 | @Override
18 | public JsonObject from(String databaseObject) {
19 | return databaseObject==null?null:new JsonObject(databaseObject);
20 | }
21 |
22 | @Override
23 | public String to(JsonObject userObject) {
24 | return userObject==null?null:userObject.encode();
25 | }
26 |
27 | @Override
28 | public Class fromType() {
29 | return String.class;
30 | }
31 |
32 | @Override
33 | public Class toType() {
34 | return JsonObject.class;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/future/VertxGeneratorTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.future;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.TestTool;
4 | import org.jooq.util.GenerationTool;
5 | import org.jooq.util.jaxb.Configuration;
6 | import org.junit.Assert;
7 | import org.junit.BeforeClass;
8 | import org.junit.Test;
9 |
10 | import java.sql.SQLException;
11 |
12 | /**
13 | * Created by jklingsporn on 17.09.16.
14 | */
15 | public class VertxGeneratorTest {
16 |
17 | @BeforeClass
18 | public static void createTestSchema() throws SQLException {
19 | TestTool.setupDB();
20 | }
21 |
22 | @Test
23 | public void generateCodeShouldSucceed() throws Exception {
24 | Configuration configuration = TestTool.createGeneratorConfig(
25 | FutureAsyncVertxGenerator.class.getName(),"future.async.vertx", FutureAsyncGeneratorStrategy.class);
26 | try {
27 | GenerationTool.generate(configuration);
28 | Assert.assertTrue(true);
29 | } catch (Exception e) {
30 | e.printStackTrace();
31 | Assert.fail(e.getMessage());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/classic/VertxGeneratorTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.classic;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.TestTool;
4 | import org.jooq.util.GenerationTool;
5 | import org.jooq.util.jaxb.Configuration;
6 | import org.junit.Assert;
7 | import org.junit.BeforeClass;
8 | import org.junit.Test;
9 |
10 | import java.sql.SQLException;
11 |
12 | /**
13 | * Created by jklingsporn on 17.09.16.
14 | */
15 | public class VertxGeneratorTest {
16 |
17 | @BeforeClass
18 | public static void createTestSchema() throws SQLException {
19 | TestTool.setupDB();;
20 | }
21 |
22 | @Test
23 | public void generateCodeShouldSucceed() throws Exception {
24 | Configuration configuration = TestTool.createGeneratorConfig(
25 | ClassicAsyncVertxGenerator.class.getName(),"classic.async.vertx", ClassicAsyncGeneratorStrategy.class);
26 | try {
27 | GenerationTool.generate(configuration);
28 | Assert.assertTrue(true);
29 | } catch (Exception e) {
30 | e.printStackTrace();
31 | Assert.fail(e.getMessage());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vertx-jooq-async-rx/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | vertx-jooq-async
7 | io.github.jklingsporn
8 | 0.4
9 |
10 | 4.0.0
11 | jar
12 | vertx-jooq-async-rx
13 |
14 |
15 |
16 | io.reactivex.rxjava2
17 | rxjava
18 | ${rx.version}
19 |
20 |
21 | io.vertx
22 | vertx-rx-java2
23 | ${vertx.version}
24 |
25 |
26 | io.github.jklingsporn
27 | vertx-jooq-async-shared
28 | ${project.version}
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/rx/VertxGeneratorTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.rx;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.TestTool;
4 | import org.jooq.util.GenerationTool;
5 | import org.jooq.util.jaxb.Configuration;
6 | import org.junit.Assert;
7 | import org.junit.BeforeClass;
8 | import org.junit.Test;
9 |
10 | import java.sql.SQLException;
11 |
12 | /**
13 | * @author Clement Escoffier
14 | * @author Jens Klingsporn
15 | */
16 | public class VertxGeneratorTest {
17 |
18 | @BeforeClass
19 | public static void createTestSchema() throws SQLException {
20 | TestTool.setupDB();
21 | }
22 |
23 | @Test
24 | public void generateCodeShouldSucceed() throws Exception {
25 | Configuration configuration = TestTool.createGeneratorConfig(
26 | RXAsyncVertxGenerator.class.getName(), "rx.async.vertx", RXAsyncGeneratorStrategy.class);
27 | try {
28 | GenerationTool.generate(configuration);
29 | Assert.assertTrue(true);
30 | } catch (Exception e) {
31 | e.printStackTrace();
32 | Assert.fail(e.getMessage());
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/Tables.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.rx.async.vertx;
5 |
6 |
7 | import generated.rx.async.vertx.tables.Something;
8 | import generated.rx.async.vertx.tables.Somethingcomposite;
9 | import generated.rx.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * Convenience access to all tables in
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public class Tables {
26 |
27 | /**
28 | * The table something.
29 | */
30 | public static final Something SOMETHING = generated.rx.async.vertx.tables.Something.SOMETHING;
31 |
32 | /**
33 | * The table somethingComposite.
34 | */
35 | public static final Somethingcomposite SOMETHINGCOMPOSITE = generated.rx.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
36 |
37 | /**
38 | * The table somethingWithoutJson.
39 | */
40 | public static final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.rx.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
41 | }
42 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/future/async/vertx/Tables.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.future.async.vertx;
5 |
6 |
7 | import generated.future.async.vertx.tables.Something;
8 | import generated.future.async.vertx.tables.Somethingcomposite;
9 | import generated.future.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * Convenience access to all tables in
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public class Tables {
26 |
27 | /**
28 | * The table something.
29 | */
30 | public static final Something SOMETHING = generated.future.async.vertx.tables.Something.SOMETHING;
31 |
32 | /**
33 | * The table somethingComposite.
34 | */
35 | public static final Somethingcomposite SOMETHINGCOMPOSITE = generated.future.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
36 |
37 | /**
38 | * The table somethingWithoutJson.
39 | */
40 | public static final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.future.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
41 | }
42 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/classic/async/vertx/Tables.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.classic.async.vertx;
5 |
6 |
7 | import generated.classic.async.vertx.tables.Something;
8 | import generated.classic.async.vertx.tables.Somethingcomposite;
9 | import generated.classic.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * Convenience access to all tables in
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public class Tables {
26 |
27 | /**
28 | * The table something.
29 | */
30 | public static final Something SOMETHING = generated.classic.async.vertx.tables.Something.SOMETHING;
31 |
32 | /**
33 | * The table somethingComposite.
34 | */
35 | public static final Somethingcomposite SOMETHINGCOMPOSITE = generated.classic.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
36 |
37 | /**
38 | * The table somethingWithoutJson.
39 | */
40 | public static final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.classic.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
41 | }
42 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/io/github/jklingsporn/vertx/jooq/async/generate/classic/JsonConversionTest.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.classic;
2 |
3 | import generated.classic.async.vertx.tables.pojos.Something;
4 | import io.vertx.core.json.JsonObject;
5 | import org.junit.Assert;
6 | import org.junit.Test;
7 |
8 | /**
9 | * Created by jensklingsporn on 22.08.17.
10 | */
11 | public class JsonConversionTest {
12 |
13 | @Test
14 | public void convertEmptyPojoToJsonShouldSucceed(){
15 | Something something = new Something();
16 | Assert.assertNotNull(something.toJson());
17 | }
18 |
19 | @Test
20 | public void convertEmptyJsonToPojoShouldSucceed(){
21 | Something something = new Something(new JsonObject());
22 | Assert.assertNotNull(something);
23 | }
24 |
25 | @Test
26 | public void convertJsonWithNullValuesToPojoShouldSucceed(){
27 | Something something = new Something();
28 | JsonObject jsonObject = something.toJson();
29 | Assert.assertNotNull(new Something(jsonObject));
30 | }
31 |
32 | @Test
33 | public void convertFromToJsonShouldReturnEqualPOJO(){
34 | Something something = VertxDaoTestBase.createSomethingWithId();
35 | JsonObject json = something.toJson();
36 | Something somethingElse = new Something(json);
37 | Assert.assertEquals(something,somethingElse);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/VertxJavaWriter.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate;
2 |
3 | import org.jooq.util.JavaWriter;
4 |
5 | import java.io.File;
6 |
7 | /**
8 | * Replaces the DAO type in the generated class with the actual type. The type
9 | * is set externally by invoking the #setDaoTypeReplacement method
10 | * from the AbstractVertxGenerator.
11 | */
12 | public class VertxJavaWriter extends JavaWriter {
13 |
14 | public static final String PLACEHOLDER_DAO_TYPE = "__DAO_TYPE__";
15 | private String daoTypeReplacement;
16 |
17 | public VertxJavaWriter(File file, String fullyQualifiedTypes) {
18 | super(file, fullyQualifiedTypes);
19 | }
20 |
21 | public VertxJavaWriter(File file, String fullyQualifiedTypes, String encoding) {
22 | super(file, fullyQualifiedTypes, encoding);
23 | }
24 |
25 | public void setDaoTypeReplacement(String daoTypeReplacement) {
26 | this.daoTypeReplacement = daoTypeReplacement;
27 | }
28 |
29 | @Override
30 | protected String beforeClose(String string) {
31 | return super.beforeClose(string.replaceAll(PLACEHOLDER_DAO_TYPE, daoTypeReplacement));
32 | }
33 |
34 | @Override
35 | public String ref(String clazzOrId, int keepSegments) {
36 | return super.ref(clazzOrId, keepSegments);
37 | }
38 |
39 | @Override
40 | public String ref(String clazz) {
41 | return super.ref(clazz);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vertx-jooq-async-rx/src/main/java/io/github/jklingsporn/vertx/jooq/async/rx/util/RXTool.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.rx.util;
2 |
3 | import io.reactivex.Observable;
4 | import io.reactivex.Single;
5 | import io.vertx.core.Handler;
6 | import io.vertx.reactivex.core.Future;
7 | import io.vertx.reactivex.core.Vertx;
8 |
9 | import java.util.List;
10 | import java.util.function.Function;
11 |
12 | /**
13 | * @author Clement Escoffier
14 | */
15 | public class RXTool {
16 | private RXTool() {
17 | }
18 |
19 |
20 | public static Single executeBlocking(Handler> blockingCodeHandler, Vertx
21 | vertx) {
22 | return vertx.rxExecuteBlocking(blockingCodeHandler);
23 | }
24 |
25 | public static Observable executeBlockingObservable(Handler>> blockingCodeHandler, Vertx
26 | vertx) {
27 | return executeBlocking(blockingCodeHandler,vertx)
28 | .flatMapObservable(Observable::fromIterable);
29 | }
30 |
31 |
32 |
33 | public static Single failure(Throwable e) {
34 | return Single.error(e);
35 | }
36 |
37 | /**
38 | * Converts a java.util.function into a io.reactivex.functions.Function.
39 | * @param f the java function
40 | * @param
41 | * @param
42 | * @return the reactivex Function
43 | */
44 | public static io.reactivex.functions.Function toFunction(Function f){
45 | return f::apply;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/VertxGeneratorStrategy.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.shared.VertxPojo;
4 | import org.jooq.util.DefaultGeneratorStrategy;
5 | import org.jooq.util.Definition;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * Created by jensklingsporn on 25.10.16.
11 | *
12 | * We need this class to let the DAOs implements VertxDAO.
13 | * Unfortunately we can not get the type easily, that's why we have to
14 | * set the placeholder.
15 | */
16 | public class VertxGeneratorStrategy extends DefaultGeneratorStrategy {
17 |
18 | private final String daoClassName;
19 |
20 | public VertxGeneratorStrategy(String daoClassName) {
21 | this.daoClassName = daoClassName;
22 | }
23 |
24 | @Override
25 | public List getJavaClassImplements(Definition definition, Mode mode) {
26 | List javaClassImplements = super.getJavaClassImplements(definition, mode);
27 | if(mode.equals(Mode.DAO)){
28 | final String tableRecord = getFullJavaClassName(definition, Mode.RECORD);
29 | final String pType = getFullJavaClassName(definition, Mode.POJO);
30 | javaClassImplements.add(String.format("%s<%s,%s,%s>",daoClassName,tableRecord,pType, VertxJavaWriter.PLACEHOLDER_DAO_TYPE));
31 | }else if(mode.equals(Mode.INTERFACE)){
32 | javaClassImplements.add(VertxPojo.class.getName());
33 | }
34 | return javaClassImplements;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/DefaultCatalog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.rx.async.vertx;
5 |
6 |
7 | import java.util.ArrayList;
8 | import java.util.Arrays;
9 | import java.util.List;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Schema;
14 | import org.jooq.impl.CatalogImpl;
15 |
16 |
17 | /**
18 | * This class is generated by jOOQ.
19 | */
20 | @Generated(
21 | value = {
22 | "http://www.jooq.org",
23 | "jOOQ version:3.10.1"
24 | },
25 | comments = "This class is generated by jOOQ"
26 | )
27 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
28 | public class DefaultCatalog extends CatalogImpl {
29 |
30 | private static final long serialVersionUID = 1300465306;
31 |
32 | /**
33 | * The reference instance of
34 | */
35 | public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
36 |
37 | /**
38 | * The schema .
39 | */
40 | public final DefaultSchema DEFAULT_SCHEMA = generated.rx.async.vertx.DefaultSchema.DEFAULT_SCHEMA;
41 |
42 | /**
43 | * No further instances allowed
44 | */
45 | private DefaultCatalog() {
46 | super("");
47 | }
48 |
49 | @Override
50 | public final List getSchemas() {
51 | List result = new ArrayList();
52 | result.addAll(getSchemas0());
53 | return result;
54 | }
55 |
56 | private final List getSchemas0() {
57 | return Arrays.asList(
58 | DefaultSchema.DEFAULT_SCHEMA);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/classic/async/vertx/DefaultCatalog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.classic.async.vertx;
5 |
6 |
7 | import java.util.ArrayList;
8 | import java.util.Arrays;
9 | import java.util.List;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Schema;
14 | import org.jooq.impl.CatalogImpl;
15 |
16 |
17 | /**
18 | * This class is generated by jOOQ.
19 | */
20 | @Generated(
21 | value = {
22 | "http://www.jooq.org",
23 | "jOOQ version:3.10.1"
24 | },
25 | comments = "This class is generated by jOOQ"
26 | )
27 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
28 | public class DefaultCatalog extends CatalogImpl {
29 |
30 | private static final long serialVersionUID = 1151739392;
31 |
32 | /**
33 | * The reference instance of
34 | */
35 | public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
36 |
37 | /**
38 | * The schema .
39 | */
40 | public final DefaultSchema DEFAULT_SCHEMA = generated.classic.async.vertx.DefaultSchema.DEFAULT_SCHEMA;
41 |
42 | /**
43 | * No further instances allowed
44 | */
45 | private DefaultCatalog() {
46 | super("");
47 | }
48 |
49 | @Override
50 | public final List getSchemas() {
51 | List result = new ArrayList();
52 | result.addAll(getSchemas0());
53 | return result;
54 | }
55 |
56 | private final List getSchemas0() {
57 | return Arrays.asList(
58 | DefaultSchema.DEFAULT_SCHEMA);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/future/async/vertx/DefaultCatalog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.future.async.vertx;
5 |
6 |
7 | import java.util.ArrayList;
8 | import java.util.Arrays;
9 | import java.util.List;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Schema;
14 | import org.jooq.impl.CatalogImpl;
15 |
16 |
17 | /**
18 | * This class is generated by jOOQ.
19 | */
20 | @Generated(
21 | value = {
22 | "http://www.jooq.org",
23 | "jOOQ version:3.10.1"
24 | },
25 | comments = "This class is generated by jOOQ"
26 | )
27 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
28 | public class DefaultCatalog extends CatalogImpl {
29 |
30 | private static final long serialVersionUID = -1006856646;
31 |
32 | /**
33 | * The reference instance of
34 | */
35 | public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
36 |
37 | /**
38 | * The schema .
39 | */
40 | public final DefaultSchema DEFAULT_SCHEMA = generated.future.async.vertx.DefaultSchema.DEFAULT_SCHEMA;
41 |
42 | /**
43 | * No further instances allowed
44 | */
45 | private DefaultCatalog() {
46 | super("");
47 | }
48 |
49 | @Override
50 | public final List getSchemas() {
51 | List result = new ArrayList();
52 | result.addAll(getSchemas0());
53 | return result;
54 | }
55 |
56 | private final List getSchemas0() {
57 | return Arrays.asList(
58 | DefaultSchema.DEFAULT_SCHEMA);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/vertx-jooq-async-rx/src/main/java/io/github/jklingsporn/vertx/jooq/async/rx/AsyncJooqSQLClient.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.rx;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.rx.util.AsyncJooqSQLClientImpl;
4 | import io.reactivex.Single;
5 | import io.vertx.core.json.JsonObject;
6 | import io.vertx.reactivex.core.Vertx;
7 | import io.vertx.reactivex.ext.asyncsql.AsyncSQLClient;
8 | import org.jooq.Query;
9 |
10 | import java.util.List;
11 | import java.util.function.Function;
12 |
13 | /**
14 | * Created by jensklingsporn on 13.06.17.
15 | */
16 | public interface AsyncJooqSQLClient {
17 |
18 | public static AsyncJooqSQLClient create(Vertx vertx, AsyncSQLClient delegate){
19 | return new AsyncJooqSQLClientImpl(vertx, delegate);
20 | }
21 |
22 | /**
23 | * @param query a jOOQ-query
24 | * @param mapper a function to map the result into another object.
25 | * @param
the type to fetch
26 | * @return A Single returning a List of P.
27 | */
28 |
Single> fetch(Query query, Function mapper);
29 |
30 | /**
31 | * @param query a jOOQ-query
32 | * @param mapper a function to map the result into another object.
33 | * @param
the type to fetch
34 | * @return A Single returning an object of P or null.
35 | */
36 |
Single
fetchOne(Query query, Function mapper);
37 |
38 | /**
39 | * @param query a jOOQ-query
40 | * @return A Single returning the number of affected rows by this query.
41 | */
42 | Single execute(Query query);
43 |
44 | /**
45 | * @param query a jOOQ-query to run the insert statement
46 | * @return A Single returning the lastId returned by mysql.
47 | */
48 | Single insertReturning(Query query);
49 |
50 | /**
51 | * @return the underlying client
52 | */
53 | AsyncSQLClient delegate();
54 | }
55 |
--------------------------------------------------------------------------------
/vertx-jooq-async-future/src/main/java/io/github/jklingsporn/vertx/jooq/async/future/AsyncJooqSQLClient.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.future;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.future.impl.AsyncJooqSQLClientImpl;
4 | import io.vertx.core.Vertx;
5 | import io.vertx.core.json.JsonObject;
6 | import io.vertx.ext.asyncsql.AsyncSQLClient;
7 | import org.jooq.Query;
8 |
9 | import java.util.List;
10 | import java.util.concurrent.CompletableFuture;
11 | import java.util.function.Function;
12 |
13 | /**
14 | * Created by jensklingsporn on 13.06.17.
15 | */
16 | public interface AsyncJooqSQLClient {
17 |
18 | public static AsyncJooqSQLClient create(Vertx vertx,AsyncSQLClient delegate){
19 | return new AsyncJooqSQLClientImpl(vertx, delegate);
20 | }
21 |
22 | /**
23 | *
24 | * @param query a jOOQ-query
25 | * @param mapper a function to map the result into another object.
26 | * @param
the type to fetch
27 | * @return A CompletableFuture returning a List of P.
28 | */
29 |
CompletableFuture> fetch(Query query, Function mapper);
30 |
31 | /**
32 | * @param query a jOOQ-query
33 | * @param mapper a function to map the result into another object.
34 | * @param
the type to fetch
35 | * @return A CompletableFuture returning an object of P or null.
36 | */
37 |
CompletableFuture
fetchOne(Query query, Function mapper);
38 |
39 | /**
40 | * @param query a jOOQ-query
41 | * @return A CompletableFuture returning the number of affected rows by this query.
42 | */
43 | CompletableFuture execute(Query query);
44 |
45 | /**
46 | * @param query a jOOQ-query to run the insert
47 | * @return A CompletableFuture returning the last inserted id provided by mysql
48 | */
49 | CompletableFuture insertReturning(Query query);
50 |
51 | /**
52 | * @return the underlying client
53 | */
54 | AsyncSQLClient delegate();
55 | }
56 |
--------------------------------------------------------------------------------
/vertx-jooq-async-classic/src/main/java/io/github/jklingsporn/vertx/jooq/async/classic/AsyncJooqSQLClient.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.classic;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.classic.impl.AsyncJooqSQLClientImpl;
4 | import io.vertx.core.AsyncResult;
5 | import io.vertx.core.Handler;
6 | import io.vertx.core.Vertx;
7 | import io.vertx.core.json.JsonObject;
8 | import io.vertx.ext.asyncsql.AsyncSQLClient;
9 | import org.jooq.Query;
10 |
11 | import java.util.List;
12 | import java.util.function.Function;
13 |
14 | /**
15 | * Created by jensklingsporn on 13.06.17.
16 | */
17 | public interface AsyncJooqSQLClient {
18 |
19 | public static AsyncJooqSQLClient create(Vertx vertx, AsyncSQLClient delegate){
20 | return new AsyncJooqSQLClientImpl(vertx, delegate);
21 | }
22 |
23 | /**
24 | *
25 | * @param query a jOOQ-query
26 | * @param mapper a function to map the result into another object.
27 | * @param resultHandler A Handler containing the fetched results, each converted by the mapper.
28 | * @param
the type to fetch
29 | */
30 |
void fetch(Query query, Function mapper, Handler>> resultHandler);
31 |
32 | /**
33 | * @param query a jOOQ-query
34 | * @param mapper a function to map the result into another object.
35 | * @param resultHandler A Handler containing the fetched result converted by the mapper.
36 | * @param
the type to fetch
37 | */
38 |
void fetchOne(Query query, Function mapper, Handler> resultHandler);
39 |
40 | /**
41 | * @param query a jOOQ-query
42 | * @param resultHandler A Handler containing the number of affected rows by this query.
43 | */
44 | void execute(Query query, Handler> resultHandler);
45 |
46 | /**
47 | * @param query a jooq-query to run the insert
48 | * @param resultHandler A Handler containing the last inserted id returned by mysql
49 | */
50 | void insertReturning(Query query, Handler> resultHandler);
51 |
52 | /**
53 | * @return the underlying client
54 | */
55 | AsyncSQLClient delegate();
56 | }
57 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/Indexes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.rx.async.vertx;
5 |
6 |
7 | import generated.rx.async.vertx.tables.Something;
8 | import generated.rx.async.vertx.tables.Somethingcomposite;
9 | import generated.rx.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Index;
14 | import org.jooq.OrderField;
15 | import org.jooq.impl.AbstractKeys;
16 |
17 |
18 | /**
19 | * A class modelling indexes of tables of the schema.
20 | */
21 | @Generated(
22 | value = {
23 | "http://www.jooq.org",
24 | "jOOQ version:3.10.1"
25 | },
26 | comments = "This class is generated by jOOQ"
27 | )
28 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
29 | public class Indexes {
30 |
31 | // -------------------------------------------------------------------------
32 | // INDEX definitions
33 | // -------------------------------------------------------------------------
34 |
35 | public static final Index SOMETHING_PRIMARY = Indexes0.SOMETHING_PRIMARY;
36 | public static final Index SOMETHINGCOMPOSITE_PRIMARY = Indexes0.SOMETHINGCOMPOSITE_PRIMARY;
37 | public static final Index SOMETHINGWITHOUTJSON_PRIMARY = Indexes0.SOMETHINGWITHOUTJSON_PRIMARY;
38 |
39 | // -------------------------------------------------------------------------
40 | // [#1459] distribute members to avoid static initialisers > 64kb
41 | // -------------------------------------------------------------------------
42 |
43 | private static class Indexes0 extends AbstractKeys {
44 | public static Index SOMETHING_PRIMARY = createIndex("PRIMARY", Something.SOMETHING, new OrderField[] { Something.SOMETHING.SOMEID }, true);
45 | public static Index SOMETHINGCOMPOSITE_PRIMARY = createIndex("PRIMARY", Somethingcomposite.SOMETHINGCOMPOSITE, new OrderField[] { Somethingcomposite.SOMETHINGCOMPOSITE.SOMEID, Somethingcomposite.SOMETHINGCOMPOSITE.SOMESECONDID }, true);
46 | public static Index SOMETHINGWITHOUTJSON_PRIMARY = createIndex("PRIMARY", Somethingwithoutjson.SOMETHINGWITHOUTJSON, new OrderField[] { Somethingwithoutjson.SOMETHINGWITHOUTJSON.SOMEID }, true);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/future/async/vertx/Indexes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.future.async.vertx;
5 |
6 |
7 | import generated.future.async.vertx.tables.Something;
8 | import generated.future.async.vertx.tables.Somethingcomposite;
9 | import generated.future.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Index;
14 | import org.jooq.OrderField;
15 | import org.jooq.impl.AbstractKeys;
16 |
17 |
18 | /**
19 | * A class modelling indexes of tables of the schema.
20 | */
21 | @Generated(
22 | value = {
23 | "http://www.jooq.org",
24 | "jOOQ version:3.10.1"
25 | },
26 | comments = "This class is generated by jOOQ"
27 | )
28 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
29 | public class Indexes {
30 |
31 | // -------------------------------------------------------------------------
32 | // INDEX definitions
33 | // -------------------------------------------------------------------------
34 |
35 | public static final Index SOMETHING_PRIMARY = Indexes0.SOMETHING_PRIMARY;
36 | public static final Index SOMETHINGCOMPOSITE_PRIMARY = Indexes0.SOMETHINGCOMPOSITE_PRIMARY;
37 | public static final Index SOMETHINGWITHOUTJSON_PRIMARY = Indexes0.SOMETHINGWITHOUTJSON_PRIMARY;
38 |
39 | // -------------------------------------------------------------------------
40 | // [#1459] distribute members to avoid static initialisers > 64kb
41 | // -------------------------------------------------------------------------
42 |
43 | private static class Indexes0 extends AbstractKeys {
44 | public static Index SOMETHING_PRIMARY = createIndex("PRIMARY", Something.SOMETHING, new OrderField[] { Something.SOMETHING.SOMEID }, true);
45 | public static Index SOMETHINGCOMPOSITE_PRIMARY = createIndex("PRIMARY", Somethingcomposite.SOMETHINGCOMPOSITE, new OrderField[] { Somethingcomposite.SOMETHINGCOMPOSITE.SOMEID, Somethingcomposite.SOMETHINGCOMPOSITE.SOMESECONDID }, true);
46 | public static Index SOMETHINGWITHOUTJSON_PRIMARY = createIndex("PRIMARY", Somethingwithoutjson.SOMETHINGWITHOUTJSON, new OrderField[] { Somethingwithoutjson.SOMETHINGWITHOUTJSON.SOMEID }, true);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/classic/async/vertx/Indexes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.classic.async.vertx;
5 |
6 |
7 | import generated.classic.async.vertx.tables.Something;
8 | import generated.classic.async.vertx.tables.Somethingcomposite;
9 | import generated.classic.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import javax.annotation.Generated;
12 |
13 | import org.jooq.Index;
14 | import org.jooq.OrderField;
15 | import org.jooq.impl.AbstractKeys;
16 |
17 |
18 | /**
19 | * A class modelling indexes of tables of the schema.
20 | */
21 | @Generated(
22 | value = {
23 | "http://www.jooq.org",
24 | "jOOQ version:3.10.1"
25 | },
26 | comments = "This class is generated by jOOQ"
27 | )
28 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
29 | public class Indexes {
30 |
31 | // -------------------------------------------------------------------------
32 | // INDEX definitions
33 | // -------------------------------------------------------------------------
34 |
35 | public static final Index SOMETHING_PRIMARY = Indexes0.SOMETHING_PRIMARY;
36 | public static final Index SOMETHINGCOMPOSITE_PRIMARY = Indexes0.SOMETHINGCOMPOSITE_PRIMARY;
37 | public static final Index SOMETHINGWITHOUTJSON_PRIMARY = Indexes0.SOMETHINGWITHOUTJSON_PRIMARY;
38 |
39 | // -------------------------------------------------------------------------
40 | // [#1459] distribute members to avoid static initialisers > 64kb
41 | // -------------------------------------------------------------------------
42 |
43 | private static class Indexes0 extends AbstractKeys {
44 | public static Index SOMETHING_PRIMARY = createIndex("PRIMARY", Something.SOMETHING, new OrderField[] { Something.SOMETHING.SOMEID }, true);
45 | public static Index SOMETHINGCOMPOSITE_PRIMARY = createIndex("PRIMARY", Somethingcomposite.SOMETHINGCOMPOSITE, new OrderField[] { Somethingcomposite.SOMETHINGCOMPOSITE.SOMEID, Somethingcomposite.SOMETHINGCOMPOSITE.SOMESECONDID }, true);
46 | public static Index SOMETHINGWITHOUTJSON_PRIMARY = createIndex("PRIMARY", Somethingwithoutjson.SOMETHINGWITHOUTJSON, new OrderField[] { Somethingwithoutjson.SOMETHINGWITHOUTJSON.SOMEID }, true);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | vertx-jooq-async
7 | io.github.jklingsporn
8 | 0.4
9 |
10 | 4.0.0
11 | jar
12 | vertx-jooq-async-generate
13 |
14 | 5.1.37
15 |
16 |
17 |
18 |
19 |
20 | io.github.jklingsporn
21 | vertx-jooq-async-classic
22 | ${project.version}
23 | test
24 |
25 |
26 | io.github.jklingsporn
27 | vertx-jooq-async-future
28 | ${project.version}
29 | test
30 |
31 |
32 | io.github.jklingsporn
33 | vertx-jooq-async-rx
34 | ${project.version}
35 | test
36 |
37 |
38 | io.reactivex.rxjava2
39 | rxjava
40 | ${rx.version}
41 | test
42 |
43 |
44 | mysql
45 | mysql-connector-java
46 | ${mysql.driver.version}
47 | test
48 |
49 |
50 | io.github.jklingsporn
51 | vertx-jooq-async-shared
52 | ${project.version}
53 |
54 |
55 | org.jooq
56 | jooq-codegen
57 | ${jooq.version}
58 |
59 |
60 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/main/java/io/github/jklingsporn/vertx/jooq/async/generate/future/FutureAsyncVertxGuiceGenerator.java:
--------------------------------------------------------------------------------
1 | package io.github.jklingsporn.vertx.jooq.async.generate.future;
2 |
3 | import io.github.jklingsporn.vertx.jooq.async.generate.AbstractVertxGuiceGenerator;
4 | import org.jooq.util.JavaWriter;
5 | import org.jooq.util.TableDefinition;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * Created by jensklingsporn on 19.04.17.
11 | */
12 | public class FutureAsyncVertxGuiceGenerator extends AbstractVertxGuiceGenerator {
13 |
14 | public FutureAsyncVertxGuiceGenerator() {
15 | super(FutureAsyncVertxGenerator.VERTX_DAO_NAME);
16 | }
17 |
18 | public FutureAsyncVertxGuiceGenerator(boolean generateJson, boolean generateGuiceModules, boolean generateInjectConfigurationMethod) {
19 | super(FutureAsyncVertxGenerator.VERTX_DAO_NAME, generateJson, generateGuiceModules, generateInjectConfigurationMethod);
20 | }
21 |
22 | @Override
23 | protected void generateDAOImports(JavaWriter out) {
24 | out.println("import java.util.concurrent.CompletableFuture;");
25 | out.println("import io.github.jklingsporn.vertx.jooq.future.async.impl.FutureTool;");
26 | }
27 |
28 | @Override
29 | protected void generateFetchOneByMethods(JavaWriter out, String pType, String colName, String colClass, String colType, String colIdentifier) {
30 | out.tab(1).javadoc("Fetch a unique record that has %s = value asynchronously", colName);
31 |
32 | out.tab(1).println("public CompletableFuture<%s> fetchOneBy%sAsync(%s value) {", pType,colClass, colType);
33 | out.tab(2).println("return FutureTool.executeBlocking(h->h.complete(fetchOneBy%s(value)),vertx());", colClass);
34 | out.tab(1).println("}");
35 | }
36 |
37 | @Override
38 | protected void generateFetchByMethods(JavaWriter out, String pType, String colName, String colClass, String colType, String colIdentifier) {
39 | out.tab(1).javadoc("Fetch records that have %s IN (values) asynchronously", colName);
40 | out.tab(1).println("public CompletableFuture> fetchBy%sAsync(%s<%s> values) {", pType, colClass, List.class, colType);
41 | //out.tab(2).println("return fetch(%s, values);", colIdentifier);
42 | out.tab(2).println("return fetchAsync(%s,values);", colIdentifier);
43 | out.tab(1).println("}");
44 | }
45 |
46 | @Override
47 | protected void renderInsertReturningOverwrite(TableDefinition table, JavaWriter out, String reason) {
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/DefaultSchema.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.rx.async.vertx;
5 |
6 |
7 | import generated.rx.async.vertx.tables.Something;
8 | import generated.rx.async.vertx.tables.Somethingcomposite;
9 | import generated.rx.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import java.util.ArrayList;
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | import javax.annotation.Generated;
16 |
17 | import org.jooq.Catalog;
18 | import org.jooq.Table;
19 | import org.jooq.impl.SchemaImpl;
20 |
21 |
22 | /**
23 | * This class is generated by jOOQ.
24 | */
25 | @Generated(
26 | value = {
27 | "http://www.jooq.org",
28 | "jOOQ version:3.10.1"
29 | },
30 | comments = "This class is generated by jOOQ"
31 | )
32 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
33 | public class DefaultSchema extends SchemaImpl {
34 |
35 | private static final long serialVersionUID = -1561434826;
36 |
37 | /**
38 | * The reference instance of
39 | */
40 | public static final DefaultSchema DEFAULT_SCHEMA = new DefaultSchema();
41 |
42 | /**
43 | * The table something.
44 | */
45 | public final Something SOMETHING = generated.rx.async.vertx.tables.Something.SOMETHING;
46 |
47 | /**
48 | * The table somethingComposite.
49 | */
50 | public final Somethingcomposite SOMETHINGCOMPOSITE = generated.rx.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
51 |
52 | /**
53 | * The table somethingWithoutJson.
54 | */
55 | public final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.rx.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
56 |
57 | /**
58 | * No further instances allowed
59 | */
60 | private DefaultSchema() {
61 | super("", null);
62 | }
63 |
64 |
65 | /**
66 | * {@inheritDoc}
67 | */
68 | @Override
69 | public Catalog getCatalog() {
70 | return DefaultCatalog.DEFAULT_CATALOG;
71 | }
72 |
73 | @Override
74 | public final List
> getTables() {
75 | List result = new ArrayList();
76 | result.addAll(getTables0());
77 | return result;
78 | }
79 |
80 | private final List
> getTables0() {
81 | return Arrays.
>asList(
82 | Something.SOMETHING,
83 | Somethingcomposite.SOMETHINGCOMPOSITE,
84 | Somethingwithoutjson.SOMETHINGWITHOUTJSON);
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/tables/interfaces/ISomethingwithoutjson.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.rx.async.vertx.tables.interfaces;
5 |
6 |
7 | import io.github.jklingsporn.vertx.jooq.async.shared.VertxPojo;
8 |
9 | import java.io.Serializable;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * This class is generated by jOOQ.
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public interface ISomethingwithoutjson extends VertxPojo, Serializable {
26 |
27 | /**
28 | * Setter for somethingWithoutJson.someId.
29 | */
30 | public ISomethingwithoutjson setSomeid(Integer value);
31 |
32 | /**
33 | * Getter for somethingWithoutJson.someId.
34 | */
35 | public Integer getSomeid();
36 |
37 | /**
38 | * Setter for somethingWithoutJson.someString.
39 | */
40 | public ISomethingwithoutjson setSomestring(String value);
41 |
42 | /**
43 | * Getter for somethingWithoutJson.someString.
44 | */
45 | public String getSomestring();
46 |
47 | // -------------------------------------------------------------------------
48 | // FROM and INTO
49 | // -------------------------------------------------------------------------
50 |
51 | /**
52 | * Load data from another generated Record/POJO implementing the common interface ISomethingwithoutjson
53 | */
54 | public void from(generated.rx.async.vertx.tables.interfaces.ISomethingwithoutjson from);
55 |
56 | /**
57 | * Copy data into another generated Record/POJO implementing the common interface ISomethingwithoutjson
58 | */
59 | public E into(E into);
60 |
61 | @Override
62 | default ISomethingwithoutjson fromJson(io.vertx.core.json.JsonObject json) {
63 | setSomeid(json.getInteger("someId"));
64 | setSomestring(json.getString("someString"));
65 | return this;
66 | }
67 |
68 |
69 | @Override
70 | default io.vertx.core.json.JsonObject toJson() {
71 | io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
72 | json.put("someId",getSomeid());
73 | json.put("someString",getSomestring());
74 | return json;
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/future/async/vertx/tables/interfaces/ISomethingwithoutjson.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.future.async.vertx.tables.interfaces;
5 |
6 |
7 | import io.github.jklingsporn.vertx.jooq.async.shared.VertxPojo;
8 |
9 | import java.io.Serializable;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * This class is generated by jOOQ.
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public interface ISomethingwithoutjson extends VertxPojo, Serializable {
26 |
27 | /**
28 | * Setter for somethingWithoutJson.someId.
29 | */
30 | public ISomethingwithoutjson setSomeid(Integer value);
31 |
32 | /**
33 | * Getter for somethingWithoutJson.someId.
34 | */
35 | public Integer getSomeid();
36 |
37 | /**
38 | * Setter for somethingWithoutJson.someString.
39 | */
40 | public ISomethingwithoutjson setSomestring(String value);
41 |
42 | /**
43 | * Getter for somethingWithoutJson.someString.
44 | */
45 | public String getSomestring();
46 |
47 | // -------------------------------------------------------------------------
48 | // FROM and INTO
49 | // -------------------------------------------------------------------------
50 |
51 | /**
52 | * Load data from another generated Record/POJO implementing the common interface ISomethingwithoutjson
53 | */
54 | public void from(generated.future.async.vertx.tables.interfaces.ISomethingwithoutjson from);
55 |
56 | /**
57 | * Copy data into another generated Record/POJO implementing the common interface ISomethingwithoutjson
58 | */
59 | public E into(E into);
60 |
61 | @Override
62 | default ISomethingwithoutjson fromJson(io.vertx.core.json.JsonObject json) {
63 | setSomeid(json.getInteger("someId"));
64 | setSomestring(json.getString("someString"));
65 | return this;
66 | }
67 |
68 |
69 | @Override
70 | default io.vertx.core.json.JsonObject toJson() {
71 | io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
72 | json.put("someId",getSomeid());
73 | json.put("someString",getSomestring());
74 | return json;
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/classic/async/vertx/tables/interfaces/ISomethingwithoutjson.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.classic.async.vertx.tables.interfaces;
5 |
6 |
7 | import io.github.jklingsporn.vertx.jooq.async.shared.VertxPojo;
8 |
9 | import java.io.Serializable;
10 |
11 | import javax.annotation.Generated;
12 |
13 |
14 | /**
15 | * This class is generated by jOOQ.
16 | */
17 | @Generated(
18 | value = {
19 | "http://www.jooq.org",
20 | "jOOQ version:3.10.1"
21 | },
22 | comments = "This class is generated by jOOQ"
23 | )
24 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
25 | public interface ISomethingwithoutjson extends VertxPojo, Serializable {
26 |
27 | /**
28 | * Setter for somethingWithoutJson.someId.
29 | */
30 | public ISomethingwithoutjson setSomeid(Integer value);
31 |
32 | /**
33 | * Getter for somethingWithoutJson.someId.
34 | */
35 | public Integer getSomeid();
36 |
37 | /**
38 | * Setter for somethingWithoutJson.someString.
39 | */
40 | public ISomethingwithoutjson setSomestring(String value);
41 |
42 | /**
43 | * Getter for somethingWithoutJson.someString.
44 | */
45 | public String getSomestring();
46 |
47 | // -------------------------------------------------------------------------
48 | // FROM and INTO
49 | // -------------------------------------------------------------------------
50 |
51 | /**
52 | * Load data from another generated Record/POJO implementing the common interface ISomethingwithoutjson
53 | */
54 | public void from(generated.classic.async.vertx.tables.interfaces.ISomethingwithoutjson from);
55 |
56 | /**
57 | * Copy data into another generated Record/POJO implementing the common interface ISomethingwithoutjson
58 | */
59 | public E into(E into);
60 |
61 | @Override
62 | default ISomethingwithoutjson fromJson(io.vertx.core.json.JsonObject json) {
63 | setSomeid(json.getInteger("someId"));
64 | setSomestring(json.getString("someString"));
65 | return this;
66 | }
67 |
68 |
69 | @Override
70 | default io.vertx.core.json.JsonObject toJson() {
71 | io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
72 | json.put("someId",getSomeid());
73 | json.put("someString",getSomestring());
74 | return json;
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/future/async/vertx/DefaultSchema.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.future.async.vertx;
5 |
6 |
7 | import generated.future.async.vertx.tables.Something;
8 | import generated.future.async.vertx.tables.Somethingcomposite;
9 | import generated.future.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import java.util.ArrayList;
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | import javax.annotation.Generated;
16 |
17 | import org.jooq.Catalog;
18 | import org.jooq.Table;
19 | import org.jooq.impl.SchemaImpl;
20 |
21 |
22 | /**
23 | * This class is generated by jOOQ.
24 | */
25 | @Generated(
26 | value = {
27 | "http://www.jooq.org",
28 | "jOOQ version:3.10.1"
29 | },
30 | comments = "This class is generated by jOOQ"
31 | )
32 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
33 | public class DefaultSchema extends SchemaImpl {
34 |
35 | private static final long serialVersionUID = 425802387;
36 |
37 | /**
38 | * The reference instance of
39 | */
40 | public static final DefaultSchema DEFAULT_SCHEMA = new DefaultSchema();
41 |
42 | /**
43 | * The table something.
44 | */
45 | public final Something SOMETHING = generated.future.async.vertx.tables.Something.SOMETHING;
46 |
47 | /**
48 | * The table somethingComposite.
49 | */
50 | public final Somethingcomposite SOMETHINGCOMPOSITE = generated.future.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
51 |
52 | /**
53 | * The table somethingWithoutJson.
54 | */
55 | public final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.future.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
56 |
57 | /**
58 | * No further instances allowed
59 | */
60 | private DefaultSchema() {
61 | super("", null);
62 | }
63 |
64 |
65 | /**
66 | * {@inheritDoc}
67 | */
68 | @Override
69 | public Catalog getCatalog() {
70 | return DefaultCatalog.DEFAULT_CATALOG;
71 | }
72 |
73 | @Override
74 | public final List
> getTables() {
75 | List result = new ArrayList();
76 | result.addAll(getTables0());
77 | return result;
78 | }
79 |
80 | private final List
> getTables0() {
81 | return Arrays.
>asList(
82 | Something.SOMETHING,
83 | Somethingcomposite.SOMETHINGCOMPOSITE,
84 | Somethingwithoutjson.SOMETHINGWITHOUTJSON);
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/vertx-jooq-async-generate/src/test/java/generated/classic/async/vertx/DefaultSchema.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is generated by jOOQ.
3 | */
4 | package generated.classic.async.vertx;
5 |
6 |
7 | import generated.classic.async.vertx.tables.Something;
8 | import generated.classic.async.vertx.tables.Somethingcomposite;
9 | import generated.classic.async.vertx.tables.Somethingwithoutjson;
10 |
11 | import java.util.ArrayList;
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | import javax.annotation.Generated;
16 |
17 | import org.jooq.Catalog;
18 | import org.jooq.Table;
19 | import org.jooq.impl.SchemaImpl;
20 |
21 |
22 | /**
23 | * This class is generated by jOOQ.
24 | */
25 | @Generated(
26 | value = {
27 | "http://www.jooq.org",
28 | "jOOQ version:3.10.1"
29 | },
30 | comments = "This class is generated by jOOQ"
31 | )
32 | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
33 | public class DefaultSchema extends SchemaImpl {
34 |
35 | private static final long serialVersionUID = -1525087410;
36 |
37 | /**
38 | * The reference instance of
39 | */
40 | public static final DefaultSchema DEFAULT_SCHEMA = new DefaultSchema();
41 |
42 | /**
43 | * The table something.
44 | */
45 | public final Something SOMETHING = generated.classic.async.vertx.tables.Something.SOMETHING;
46 |
47 | /**
48 | * The table somethingComposite.
49 | */
50 | public final Somethingcomposite SOMETHINGCOMPOSITE = generated.classic.async.vertx.tables.Somethingcomposite.SOMETHINGCOMPOSITE;
51 |
52 | /**
53 | * The table somethingWithoutJson.
54 | */
55 | public final Somethingwithoutjson SOMETHINGWITHOUTJSON = generated.classic.async.vertx.tables.Somethingwithoutjson.SOMETHINGWITHOUTJSON;
56 |
57 | /**
58 | * No further instances allowed
59 | */
60 | private DefaultSchema() {
61 | super("", null);
62 | }
63 |
64 |
65 | /**
66 | * {@inheritDoc}
67 | */
68 | @Override
69 | public Catalog getCatalog() {
70 | return DefaultCatalog.DEFAULT_CATALOG;
71 | }
72 |
73 | @Override
74 | public final List
> getTables() {
75 | List result = new ArrayList();
76 | result.addAll(getTables0());
77 | return result;
78 | }
79 |
80 | private final List