- java.lang.Object
-
- org.jooq.codegen.AbstractGeneratorStrategy
-
- org.jooq.codegen.DefaultGeneratorStrategy
-
- org.jooq.codegen.KeepNamesGeneratorStrategy
-
- All Implemented Interfaces:
GeneratorStrategy
public class KeepNamesGeneratorStrategy extends DefaultGeneratorStrategy
A strategy for keeping all names exactly as they are reported by the database.- Author:
- Lukas Eder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jooq.codegen.GeneratorStrategy
GeneratorStrategy.Mode
-
-
Constructor Summary
Constructors Constructor Description KeepNamesGeneratorStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaClassName(Definition definition, GeneratorStrategy.Mode mode)StringgetJavaGetterName(Definition definition, GeneratorStrategy.Mode mode)This is applied to definitions that can result in getters of a container.StringgetJavaIdentifier(Definition definition)This is applied to definitions that can result in reference static and instance members.StringgetJavaMemberName(Definition definition, GeneratorStrategy.Mode mode)The "java member name" is applied where a definition is used as a member (for POJOs) or as a method argument (for setters).StringgetJavaMethodName(Definition definition, GeneratorStrategy.Mode mode)This is applied to definitions that can result in methods.StringgetJavaSetterName(Definition definition, GeneratorStrategy.Mode mode)This is applied to definitions that can result in setters of a container.-
Methods inherited from class org.jooq.codegen.DefaultGeneratorStrategy
getFileHeader, getGlobalReferencesFileHeader, getGlobalReferencesJavaClassExtends, getGlobalReferencesJavaClassImplements, getGlobalReferencesJavaClassName, getGlobalReferencesJavaPackageName, getInstanceFields, getJavaBeansGettersAndSetters, getJavaClassExtends, getJavaClassImplements, getJavaEnumLiteral, getJavaPackageName, getOverloadSuffix, getTargetDirectory, getTargetLanguage, getTargetLocale, getTargetPackage, setInstanceFields, setJavaBeansGettersAndSetters, setTargetDirectory, setTargetLanguage, setTargetLocale, setTargetPackage
-
Methods inherited from class org.jooq.codegen.AbstractGeneratorStrategy
getFile, getFile, getFile, getFileHeader, getFileName, getFileName, getFileRoot, getFullJavaClassName, getFullJavaClassName, getFullJavaIdentifier, getFullJavaIdentifiers, getFullJavaIdentifiers, getGlobalReferencesFile, getGlobalReferencesFileName, getGlobalReferencesFullJavaClassName, getJavaClassExtends, getJavaClassImplements, getJavaClassName, getJavaEnumLiterals, getJavaEnumLiterals, getJavaGetterName, getJavaIdentifiers, getJavaIdentifiers, getJavaMemberName, getJavaMethodName, getJavaPackageName, getJavaSetterName
-
-
-
-
Method Detail
-
getJavaIdentifier
public String getJavaIdentifier(Definition definition)
Description copied from interface:GeneratorStrategyThis is applied to definitions that can result in reference static and instance members. For instance, the reference instance of aTableDefinitionis a java identifier- Specified by:
getJavaIdentifierin interfaceGeneratorStrategy- Overrides:
getJavaIdentifierin classDefaultGeneratorStrategy- Returns:
- The Java identifier representing this object, e.g. [my_table]
-
getJavaSetterName
public String getJavaSetterName(Definition definition, GeneratorStrategy.Mode mode)
Description copied from interface:GeneratorStrategyThis is applied to definitions that can result in setters of a container. For example, the definition could be aColumnDefinition, the container aTableDefinition. Then this would apply to records and POJOs. Also, the definition could be anAttributeDefinitionand the container aUDTDefinition- Specified by:
getJavaSetterNamein interfaceGeneratorStrategy- Overrides:
getJavaSetterNamein classDefaultGeneratorStrategy- Returns:
- The Java setter method name representing this object, e.g. [setMyTable]
-
getJavaGetterName
public String getJavaGetterName(Definition definition, GeneratorStrategy.Mode mode)
Description copied from interface:GeneratorStrategyThis is applied to definitions that can result in getters of a container. For example, the definition could be aColumnDefinition, the container aTableDefinition. Then this would apply to records and POJOs. Also, the definition could be anAttributeDefinitionand the container aUDTDefinition- Specified by:
getJavaGetterNamein interfaceGeneratorStrategy- Overrides:
getJavaGetterNamein classDefaultGeneratorStrategy- Returns:
- The Java getter method name representing this object, e.g. [getMyTable]
-
getJavaMethodName
public String getJavaMethodName(Definition definition, GeneratorStrategy.Mode mode)
Description copied from interface:GeneratorStrategyThis is applied to definitions that can result in methods. For example, the definition could be aRoutineDefinition- Specified by:
getJavaMethodNamein interfaceGeneratorStrategy- Overrides:
getJavaMethodNamein classDefaultGeneratorStrategy- Returns:
- The Java method name representing this object, e.g. [myFunction]
-
getJavaClassName
public String getJavaClassName(Definition definition, GeneratorStrategy.Mode mode)
- Specified by:
getJavaClassNamein interfaceGeneratorStrategy- Overrides:
getJavaClassNamein classDefaultGeneratorStrategy- Returns:
- The Java class name representing this object, e.g. [MyTableSuffix]
-
getJavaMemberName
public String getJavaMemberName(Definition definition, GeneratorStrategy.Mode mode)
Description copied from interface:GeneratorStrategyThe "java member name" is applied where a definition is used as a member (for POJOs) or as a method argument (for setters). Example definitions are- Specified by:
getJavaMemberNamein interfaceGeneratorStrategy- Overrides:
getJavaMemberNamein classDefaultGeneratorStrategy- Returns:
- The Java class name representing this object, starting with a lower case character, e.g. [myTableSuffix]
-
-