Klasse AbstractDelegatingGeneratorStrategy

java.lang.Object
org.jooq.codegen.AbstractGeneratorStrategy
org.jooq.codegen.AbstractDelegatingGeneratorStrategy
Alle implementierten Schnittstellen:
GeneratorStrategy
Bekannte direkte Unterklassen:
PrefixSuffixGeneratorStrategy

public abstract class AbstractDelegatingGeneratorStrategy extends AbstractGeneratorStrategy
A GeneratorStrategy that delegates to another one.
Autor:
Lukas Eder
  • Felddetails

  • Konstruktordetails

    • AbstractDelegatingGeneratorStrategy

      public AbstractDelegatingGeneratorStrategy()
    • AbstractDelegatingGeneratorStrategy

      public AbstractDelegatingGeneratorStrategy(GeneratorStrategy delegate)
  • Methodendetails

    • getTargetDirectory

      public String getTargetDirectory()
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      The target directory
    • setTargetDirectory

      public void setTargetDirectory(String directory)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Initialise the target directory
    • getTargetPackage

      public String getTargetPackage()
      Gibt zurück:
      Get the target package for the current configuration
    • setTargetPackage

      public void setTargetPackage(String packageName)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Initialise the target package name
    • getTargetLocale

      public Locale getTargetLocale()
      Gibt zurück:
      Get the target locale for the current configuration
    • setTargetLocale

      public void setTargetLocale(Locale targetLocale)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Initialise the target locale
    • getTargetLanguage

      public Language getTargetLanguage()
      Gibt zurück:
      Get the target language for the current configuration
    • setTargetLanguage

      public void setTargetLanguage(Language targetLanguage)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Initialise the target language
    • setInstanceFields

      public void setInstanceFields(boolean instanceFields)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether fields are instance fields (as opposed to static fields)
    • getInstanceFields

      public boolean getInstanceFields()
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether fields are instance fields (as opposed to static fields)
    • setJavaBeansGettersAndSetters

      public void setJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether getters and setters should be generated JavaBeans style (or jOOQ style).
    • getJavaBeansGettersAndSetters

      public boolean getJavaBeansGettersAndSetters()
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether getters and setters should be generated JavaBeans style (or jOOQ style).
    • setUseTableNameForUnambiguousFKs

      public void setUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether names of unambiguous ForeignKeyDefinition should be based on the referenced TableDefinition.

      When a child table has only one ForeignKeyDefinition towards a parent table, then that path is "unambiguous." In that case, some GeneratorStrategy implementations may choose to use the parent table's TableDefinition for implementations of GeneratorStrategy.getJavaMethodName(Definition), instead of the ForeignKeyDefinition, e.g. for implicit join paths.

      This flag allows for turning off this default behaviour.

    • getUseTableNameForUnambiguousFKs

      public boolean getUseTableNameForUnambiguousFKs()
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      Whether names of unambiguous ForeignKeyDefinition should be based on the referenced TableDefinition.

      When a child table has only one ForeignKeyDefinition towards a parent table, then that path is "unambiguous." In that case, some GeneratorStrategy implementations may choose to use the parent table's TableDefinition for implementations of GeneratorStrategy.getJavaMethodName(Definition), instead of the ForeignKeyDefinition, e.g. for implicit join paths.

      This flag allows for turning off this default behaviour.

    • getJavaEnumLiteral

      public String getJavaEnumLiteral(EnumDefinition definition, String literal)
      Beschreibung aus Schnittstelle kopiert: GeneratorStrategy
      This is applied to enum literals of a given EnumDefinition.
      Gibt zurück:
      The Java identifier representing this enum literal, e.g. [OK]
    • getGlobalNamesJavaClassExtends

      public String getGlobalNamesJavaClassExtends(Definition container, Class<? extends Definition> objectType)
      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 null or an empty string, then no super class is extended.
    • getGlobalReferencesJavaClassExtends

      public 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 null or an empty string, then no super class is extended.
    • getJavaClassExtends

      public String getJavaClassExtends(Definition definition, GeneratorStrategy.Mode mode)
      Gibt zurück:
      The super class name of the Java class representing this object, e.g. [com.example.AbstractPojo]. If this returns null or an empty string, then no super class is extended.
    • getGlobalNamesJavaClassImplements

      public 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 null or an empty list, then no interfaces are implemented.
    • getGlobalReferencesJavaClassImplements

      public 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 null or an empty list, then no interfaces are implemented.
    • getJavaClassImplements

      public List<String> getJavaClassImplements(Definition definition, GeneratorStrategy.Mode mode)
      Gibt zurück:
      The implemented interface names of the Java class name representing this object, e.g. [com.example.Pojo]. If this returns null or an empty list, then no interfaces are implemented.
    • getGlobalNamesJavaClassName

      public String getGlobalNamesJavaClassName(Definition container, Class<? extends Definition> objectType)
      Gibt zurück:
      The Java class name of the global names class for a given definition type, e.g. [TableNames]
    • getGlobalNamesJavaPackageName

      public String getGlobalNamesJavaPackageName(Definition container, Class<? extends Definition> objectType)
      Gibt zurück:
      The Java package name of the global names class for a given definition type, e.g. [org.jooq.generated]
    • getGlobalNamesFileHeader

      public String getGlobalNamesFileHeader(Definition container, Class<? extends Definition> objectType)
      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.
       
    • getGlobalReferencesJavaClassName

      public 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]
    • getGlobalReferencesJavaPackageName

      public 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]
    • getGlobalReferencesFileHeader

      public String getGlobalReferencesFileHeader(Definition container, Class<? extends Definition> objectType)
      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

      public String getFileHeader(Definition definition, GeneratorStrategy.Mode mode)
      Gibt zurück:
      The Java class file header, e.g.
      
       This file is generated by jOOQ.
       
    • getOverloadSuffix

      public String getOverloadSuffix(Definition definition, GeneratorStrategy.Mode mode, String overloadIndex)
      Gibt zurück:
      The overload suffix to be applied when generating overloaded routine artefacts, e.g. "_OverloadIndex_" + overloadIndex