org.jooq.meta.Definition Java Examples
The following examples show how to use
org.jooq.meta.Definition.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TableNamingStrategy.java From hadoop-ozone with Apache License 2.0 | 6 votes |
@Override public String getJavaClassName(Definition definition, Mode mode) { if (definition instanceof TableDefinition && mode == Mode.DEFAULT) { StringBuilder result = new StringBuilder(); result.append(StringUtils.toCamelCase( definition.getOutputName() .replace(' ', '_') .replace('-', '_') .replace('.', '_') )); result.append("Table"); return result.toString(); } else { return super.getJavaClassName(definition, mode); } }
Example #2
Source File: CustomGeneratorStrategy.java From StubbornJava with MIT License | 5 votes |
@Override public String getJavaClassName(Definition definition, Mode mode) { // Append Tables to the end of the Table classes if (getJavaPackageName(definition, mode).endsWith("tables")) { return super.getJavaClassName(definition, mode) + "Table"; } return super.getJavaClassName(definition, mode); }
Example #3
Source File: CustomGeneratorStrategy.java From StubbornJava with MIT License | 5 votes |
@Override public String getJavaClassName(Definition definition, Mode mode) { // Append Tables to the end of the Table classes if (getJavaPackageName(definition, mode).endsWith("tables")) { return super.getJavaClassName(definition, mode) + "Table"; } return super.getJavaClassName(definition, mode); }
Example #4
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 5 votes |
@Override public List<String> getJavaClassImplements(Definition definition, Mode mode) { List<String> javaClassImplements = delegate.getJavaClassImplements(definition, mode); if(mode.equals(Mode.INTERFACE) || mode.equals(Mode.POJO) || mode.equals(Mode.RECORD)) { //let POJO and RECORD also implement VertxPojo to fix #37 javaClassImplements.add(VertxPojo.class.getName()); } return javaClassImplements; }
Example #5
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getFullJavaClassName(Definition definition, Mode mode) { return delegate.getFullJavaClassName(definition, mode); }
Example #6
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getOverloadSuffix(Definition definition, Mode mode, String overloadIndex) { return delegate.getOverloadSuffix(definition, mode, overloadIndex); }
Example #7
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public List<String> getJavaIdentifiers(Collection<? extends Definition> definitions) { return delegate.getJavaIdentifiers(definitions); }
Example #8
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public List<String> getJavaIdentifiers(Definition... definitions) { return delegate.getJavaIdentifiers(definitions); }
Example #9
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public List<String> getFullJavaIdentifiers(Collection<? extends Definition> definitions) { return delegate.getFullJavaIdentifiers(definitions); }
Example #10
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public List<String> getFullJavaIdentifiers(Definition... definitions) { return delegate.getFullJavaIdentifiers(definitions); }
Example #11
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getFileHeader(Definition definition, Mode mode) { return delegate.getFileHeader(definition, mode); }
Example #12
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaIdentifier(Definition definition) { return delegate.getJavaIdentifier(definition); }
Example #13
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaSetterName(Definition definition, Mode mode) { return delegate.getJavaSetterName(definition, mode); }
Example #14
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaGetterName(Definition definition, Mode mode) { return delegate.getJavaGetterName(definition, mode); }
Example #15
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaMethodName(Definition definition, Mode mode) { return delegate.getJavaMethodName(definition, mode); }
Example #16
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaClassExtends(Definition definition, Mode mode) { return delegate.getJavaClassExtends(definition, mode); }
Example #17
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaClassName(Definition definition, Mode mode) { return delegate.getJavaClassName(definition, mode); }
Example #18
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaPackageName(Definition definition, Mode mode) { return delegate.getJavaPackageName(definition, mode); }
Example #19
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaMemberName(Definition definition, Mode mode) { return delegate.getJavaMemberName(definition, mode); }
Example #20
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getFullJavaClassName(Definition definition) { return delegate.getFullJavaClassName(definition); }
Example #21
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaMemberName(Definition definition) { return delegate.getJavaMemberName(definition); }
Example #22
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaPackageName(Definition definition) { return delegate.getJavaPackageName(definition); }
Example #23
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaClassName(Definition definition) { return delegate.getJavaClassName(definition); }
Example #24
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public List<String> getJavaClassImplements(Definition definition) { return delegate.getJavaClassImplements(definition); }
Example #25
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaClassExtends(Definition definition) { return delegate.getJavaClassExtends(definition); }
Example #26
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaMethodName(Definition definition) { return delegate.getJavaMethodName(definition); }
Example #27
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaGetterName(Definition definition) { return delegate.getJavaGetterName(definition); }
Example #28
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getJavaSetterName(Definition definition) { return delegate.getJavaSetterName(definition); }
Example #29
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getFullJavaIdentifier(Definition definition) { return delegate.getFullJavaIdentifier(definition); }
Example #30
Source File: VertxGeneratorStrategy.java From vertx-jooq with MIT License | 4 votes |
@Override public String getFileHeader(Definition definition) { return delegate.getFileHeader(definition); }