- Alle bekannten Implementierungsklassen:
AbstractDelegatingGeneratorStrategy,AbstractGeneratorStrategy,DefaultGeneratorStrategy,JPrefixGeneratorStrategy,JVMArgsGeneratorStrategy,KeepNamesGeneratorStrategy,MatcherStrategy,PascalCaseGeneratorStrategy,PrefixSuffixGeneratorStrategy
Definition's- Autor:
- Lukas Eder
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic enumThe "mode" by which an artefact should be named -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFile(Definition definition) getFile(Definition definition, GeneratorStrategy.Mode mode) getFileHeader(Definition definition) getFileHeader(Definition definition, GeneratorStrategy.Mode mode) getFileName(Definition definition) getFileName(Definition definition, GeneratorStrategy.Mode mode) getFullJavaClassName(Definition definition) getFullJavaClassName(Definition definition, GeneratorStrategy.Mode mode) This is the same as callinggetFullJavaClassName(definition, Mode.DEFAULT)getFullJavaIdentifier(Definition definition) This is applied to definitions that can result in reference static and instance members.getFullJavaIdentifiers(Collection<? extends Definition> definitions) getFullJavaIdentifiers(Definition... definitions) getGlobalNamesFile(Definition container, Class<? extends Definition> objectType) getGlobalNamesFileHeader(Definition container, Class<? extends Definition> objectType) getGlobalNamesFileName(Definition container, Class<? extends Definition> objectType) getGlobalNamesFullJavaClassName(Definition container, Class<? extends Definition> objectType) getGlobalNamesJavaClassExtends(Definition container, Class<? extends Definition> objectType) getGlobalNamesJavaClassImplements(Definition container, Class<? extends Definition> objectType) getGlobalNamesJavaClassName(Definition container, Class<? extends Definition> objectType) getGlobalNamesJavaPackageName(Definition container, Class<? extends Definition> objectType) getGlobalReferencesFile(Definition container, Class<? extends Definition> objectType) getGlobalReferencesFileHeader(Definition container, Class<? extends Definition> objectType) getGlobalReferencesFileName(Definition container, Class<? extends Definition> objectType) getGlobalReferencesFullJavaClassName(Definition container, Class<? extends Definition> objectType) getGlobalReferencesJavaClassExtends(Definition container, Class<? extends Definition> objectType) getGlobalReferencesJavaClassImplements(Definition container, Class<? extends Definition> objectType) getGlobalReferencesJavaClassName(Definition container, Class<? extends Definition> objectType) getGlobalReferencesJavaPackageName(Definition container, Class<? extends Definition> objectType) booleanWhether fields are instance fields (as opposed to static fields)booleanWhether getters and setters should be generated JavaBeans style (or jOOQ style).getJavaClassExtends(Definition definition) This is the same as callinggetJavaClassExtends(definition, Mode.DEFAULT)getJavaClassExtends(Definition definition, GeneratorStrategy.Mode mode) getJavaClassImplements(Definition definition) This is the same as callinggetJavaClassImplements(definition, Mode.DEFAULT)getJavaClassImplements(Definition definition, GeneratorStrategy.Mode mode) getJavaClassName(Definition definition) This is the same as callinggetJavaClassName(definition, Mode.DEFAULT)getJavaClassName(Definition definition, GeneratorStrategy.Mode mode) getJavaEnumLiteral(EnumDefinition definition, String literal) This is applied to enum literals of a givenEnumDefinition.getJavaEnumLiterals(EnumDefinition definition, String... literals) getJavaEnumLiterals(EnumDefinition definition, Collection<? extends String> literals) getJavaGetterName(Definition definition) This is applied to definitions that can result in getters of a container.getJavaGetterName(Definition definition, GeneratorStrategy.Mode mode) This is applied to definitions that can result in getters of a container.booleangetJavaGetterOverride(Definition definition, GeneratorStrategy.Mode mode) Whether thegetJavaGetterName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g.getJavaIdentifier(Definition definition) This is applied to definitions that can result in reference static and instance members.getJavaIdentifiers(Collection<? extends Definition> definitions) getJavaIdentifiers(Definition... definitions) getJavaMemberName(Definition definition) The "java member name" is applied where a definition is used as a member (for POJOs) or as a method argument (for setters).getJavaMemberName(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).booleangetJavaMemberOverride(Definition definition, GeneratorStrategy.Mode mode) Whether thegetJavaMemberName(Definition, Mode)produces a member that overrides a member from a parent type unknown to jOOQ, e.g.getJavaMethodName(Definition definition) This is applied to definitions that can result in methods.getJavaMethodName(Definition definition, GeneratorStrategy.Mode mode) This is applied to definitions that can result in methods.booleangetJavaMethodOverride(Definition definition, GeneratorStrategy.Mode mode) Whether thegetJavaMethodName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g.getJavaPackageName(Definition definition) This is the same as callinggetJavaPackageName(definition, Mode.DEFAULT)getJavaPackageName(Definition definition, GeneratorStrategy.Mode mode) getJavaSetterName(Definition definition) This is applied to definitions that can result in setters of a container.getJavaSetterName(Definition definition, GeneratorStrategy.Mode mode) This is applied to definitions that can result in setters of a container.booleangetJavaSetterOverride(Definition definition, GeneratorStrategy.Mode mode) Whether thegetJavaSetterName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g.getOverloadSuffix(Definition definition, GeneratorStrategy.Mode mode, String overloadIndex) The target directorybooleanWhether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.voidsetInstanceFields(boolean instanceFields) Whether fields are instance fields (as opposed to static fields)voidsetJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters) Whether getters and setters should be generated JavaBeans style (or jOOQ style).voidsetTargetDirectory(String directory) Initialise the target directoryvoidsetTargetLanguage(Language targetLanguage) Initialise the target languagevoidsetTargetLocale(Locale targetLocale) Initialise the target localevoidsetTargetPackage(String packageName) Initialise the target package namevoidsetUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs) Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.
-
Methodendetails
-
getTargetDirectory
String getTargetDirectory()The target directory -
setTargetDirectory
Initialise the target directory -
getTargetPackage
String getTargetPackage()- Gibt zurück:
- Get the target package for the current configuration
-
setTargetPackage
Initialise the target package name -
getTargetLocale
Locale getTargetLocale()- Gibt zurück:
- Get the target locale for the current configuration
-
setTargetLocale
Initialise the target locale -
getTargetLanguage
Language getTargetLanguage()- Gibt zurück:
- Get the target language for the current configuration
-
setTargetLanguage
Initialise the target language -
setInstanceFields
void setInstanceFields(boolean instanceFields) Whether fields are instance fields (as opposed to static fields) -
getInstanceFields
boolean getInstanceFields()Whether fields are instance fields (as opposed to static fields) -
setJavaBeansGettersAndSetters
void setJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters) Whether getters and setters should be generated JavaBeans style (or jOOQ style). -
getJavaBeansGettersAndSetters
boolean getJavaBeansGettersAndSetters()Whether getters and setters should be generated JavaBeans style (or jOOQ style). -
setUseTableNameForUnambiguousFKs
void setUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs) Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.When a child table has only one
ForeignKeyDefinitiontowards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategyimplementations may choose to use the parent table'sTableDefinitionfor implementations ofgetJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
-
getUseTableNameForUnambiguousFKs
boolean getUseTableNameForUnambiguousFKs()Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.When a child table has only one
ForeignKeyDefinitiontowards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategyimplementations may choose to use the parent table'sTableDefinitionfor implementations ofgetJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
-
getJavaEnumLiteral
This is applied to enum literals of a givenEnumDefinition.- Gibt zurück:
- The Java identifier representing this enum literal, e.g. [OK]
-
getJavaEnumLiterals
- Siehe auch:
-
getJavaEnumLiterals
- Siehe auch:
-
getJavaIdentifier
This is applied to definitions that can result in reference static and instance members. For instance, the reference instance of aTableDefinitionis a java identifier- Gibt zurück:
- The Java identifier representing this object, e.g. [my_table]
-
getJavaIdentifiers
- Siehe auch:
-
getJavaIdentifiers
- Siehe auch:
-
getFullJavaIdentifier
This is applied to definitions that can result in reference static and instance members. For instance, the reference instance of aTableDefinitionis a java identifier- Gibt zurück:
- The Java identifier representing this object, e.g. [my_table]
-
getFullJavaIdentifiers
- Siehe auch:
-
getFullJavaIdentifiers
- Siehe auch:
-
getJavaSetterName
This 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 aUDTDefinitionThis is the same as calling
getJavaSetterName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java setter method name representing this object, e.g. [setMyTable]
-
getJavaSetterName
This 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- Gibt zurück:
- The Java setter method name representing this object, e.g. [setMyTable]
-
getJavaSetterOverride
Whether thegetJavaSetterName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g. fromgetJavaClassExtends(Definition, Mode)orgetJavaClassImplements(Definition, Mode). -
getJavaGetterName
This 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 aUDTDefinitionThis is the same as calling
getJavaGetterName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java getter method name representing this object, e.g. [getMyTable]
-
getJavaGetterName
This 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- Gibt zurück:
- The Java getter method name representing this object, e.g. [getMyTable]
-
getJavaGetterOverride
Whether thegetJavaGetterName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g. fromgetJavaClassExtends(Definition, Mode)orgetJavaClassImplements(Definition, Mode). -
getJavaMethodName
This is applied to definitions that can result in methods. For example, the definition could be aRoutineDefinitionThis is the same as calling
getJavaMethodName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java method name representing this object, e.g. [myFunction]
-
getJavaMethodName
This is applied to definitions that can result in methods. For example, the definition could be aRoutineDefinition- Gibt zurück:
- The Java method name representing this object, e.g. [myFunction]
-
getJavaMethodOverride
Whether thegetJavaMethodName(Definition, Mode)produces a method that overrides a member from a parent type unknown to jOOQ, e.g. fromgetJavaClassExtends(Definition, Mode)orgetJavaClassImplements(Definition, Mode). -
getGlobalNamesJavaClassExtends
- Gibt zurück:
- The super class name of the global names class for a given
definition type, e.g. [com.example.AbstractPojo]. If this returns
nullor an empty string, then no super class is extended.
-
getGlobalReferencesJavaClassExtends
String getGlobalReferencesJavaClassExtends(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The super class name of the global references class for a given
definition type, e.g. [com.example.AbstractPojo]. If this returns
nullor an empty string, then no super class is extended.
-
getJavaClassExtends
This is the same as callinggetJavaClassExtends(definition, Mode.DEFAULT)- Gibt zurück:
- The super class name of the Java class representing this object,
e.g. [com.example.AbstractPojo]. If this returns
nullor an empty string, then no super class is extended.
-
getJavaClassExtends
- Gibt zurück:
- The super class name of the Java class representing this object,
e.g. [com.example.AbstractPojo]. If this returns
nullor an empty string, then no super class is extended.
-
getGlobalNamesJavaClassImplements
List<String> getGlobalNamesJavaClassImplements(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The implemented interface names of the global names class
for a given definition type, e.g. [com.example.Pojo]. If this
returns
nullor an empty list, then no interfaces are implemented.
-
getGlobalReferencesJavaClassImplements
List<String> getGlobalReferencesJavaClassImplements(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The implemented interface names of the global references class
for a given definition type, e.g. [com.example.Pojo]. If this
returns
nullor an empty list, then no interfaces are implemented.
-
getJavaClassImplements
This is the same as callinggetJavaClassImplements(definition, Mode.DEFAULT)- Gibt zurück:
- The implemented interface names of the Java class name
representing this object, e.g. [com.example.Pojo] If this returns
nullor an empty list, then no interfaces are implemented.
-
getJavaClassImplements
- Gibt zurück:
- The implemented interface names of the Java class name
representing this object, e.g. [com.example.Pojo]. If this
returns
nullor an empty list, then no interfaces are implemented.
-
getGlobalNamesJavaClassName
- Gibt zurück:
- The Java class name of the global names class for a given definition type, e.g. [TableNames]
-
getGlobalReferencesJavaClassName
String getGlobalReferencesJavaClassName(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The Java class name of the global references class for a given definition type, e.g. [MyTableSuffix]
-
getJavaClassName
This is the same as callinggetJavaClassName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java class name representing this object, e.g. [MyTable]
-
getJavaClassName
- Gibt zurück:
- The Java class name representing this object, e.g. [MyTableSuffix]
-
getGlobalNamesJavaPackageName
- Gibt zurück:
- The Java package name of the global names class for a given definition type, e.g. [org.jooq.generated]
-
getGlobalReferencesJavaPackageName
String getGlobalReferencesJavaPackageName(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The Java package name of the global references class for a given definition type, e.g. [org.jooq.generated]
-
getJavaPackageName
This is the same as callinggetJavaPackageName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java package name of this object, e.g. [org.jooq.generated]
-
getJavaPackageName
- Gibt zurück:
- The Java package name of this object, e.g. [org.jooq.generated]
-
getJavaMemberName
The "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 This is the same as callinggetJavaMemberName(definition, Mode.DEFAULT)- Gibt zurück:
- The Java class name representing this object, starting with a lower case character, e.g. [myTable]
-
getJavaMemberName
The "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- Gibt zurück:
- The Java class name representing this object, starting with a lower case character, e.g. [myTableSuffix]
-
getJavaMemberOverride
Whether thegetJavaMemberName(Definition, Mode)produces a member that overrides a member from a parent type unknown to jOOQ, e.g. fromgetJavaClassExtends(Definition, Mode)orgetJavaClassImplements(Definition, Mode). -
getGlobalNamesFullJavaClassName
String getGlobalNamesFullJavaClassName(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The full Java class name of the global names class for a given definition type, e.g. [org.jooq.generated.TableNames]
-
getGlobalReferencesFullJavaClassName
String getGlobalReferencesFullJavaClassName(Definition container, Class<? extends Definition> objectType) - Gibt zurück:
- The full Java class name of the global references class for a given definition type, e.g. [org.jooq.generated.MyTable]
-
getFullJavaClassName
- Gibt zurück:
- The full Java class name representing this object, e.g. [org.jooq.generated.MyTable]
-
getFullJavaClassName
This is the same as callinggetFullJavaClassName(definition, Mode.DEFAULT)- Gibt zurück:
- The full Java class name representing this object, e.g. [org.jooq.generated.MyTable][suffix]
-
getGlobalNamesFileName
- Gibt zurück:
- The Java class file name of the global names class for a given definition type, e.g. [TableNames.java]
-
getGlobalReferencesFileName
- Gibt zurück:
- The Java class file name of the global references class for a given definition type, e.g. [MyTable.java]
-
getFileName
- Gibt zurück:
- The Java class file name representing this object, e.g. [MyTable.java]
-
getFileName
- Gibt zurück:
- The Java class file name representing this object, e.g. [MyTableSuffix.java]
-
getFileRoot
File getFileRoot()- Gibt zurück:
- The directory containing all Java objects, e.g. [C:\org\jooq\generated]
-
getGlobalNamesFile
- Gibt zurück:
- The Java class file name of the global names class for a given definition type, e.g. [C:\org\jooq\generated\TableNames.java]
-
getGlobalReferencesFile
- Gibt zurück:
- The Java class file name of the global references class for a given definition type, e.g. [C:\org\jooq\generated\MyTable.java]
-
getFile
- Gibt zurück:
- The Java class file name representing this object, e.g. [C:\org\jooq\generated\MyTable.java]
-
getFile
- Gibt zurück:
- The Java class file name representing this object, e.g. [C:\org\jooq\generated\MyTableSuffix.java]
-
getFile
- Gibt zurück:
- The Java class file name representing this object, e.g. [C:\org\jooq\generated\fileName]
-
getGlobalNamesFileHeader
- Gibt zurück:
- The Java class file header of the global names class for a
given definition type, e.g.
This file is generated by jOOQ.
-
getGlobalReferencesFileHeader
- Gibt zurück:
- The Java class file header of the global references class for a
given definition type, e.g.
This file is generated by jOOQ.
-
getFileHeader
- Gibt zurück:
- The Java class file header, e.g.
This file is generated by jOOQ.
-
getFileHeader
- Gibt zurück:
- The Java class file header, e.g.
This file is generated by jOOQ.
-
getOverloadSuffix
- Gibt zurück:
- The overload suffix to be applied when generating overloaded
routine artefacts, e.g.
"_OverloadIndex_" + overloadIndex
-