Class Target

java.lang.Object
org.jooq.meta.jaxb.Target
All Implemented Interfaces:
Serializable, XMLAppendable

public class Target extends Object implements Serializable, XMLAppendable
Options to define where the generated code should be located.
See Also:
  • Field Details

    • packageName

      protected String packageName
    • directory

      protected String directory
    • encoding

      protected String encoding
    • locale

      protected String locale
    • clean

      protected Boolean clean
  • Constructor Details

    • Target

      public Target()
  • Method Details

    • getPackageName

      public String getPackageName()
      The destination package of your generated classes (within the destination directory)

      jOOQ may append the schema name to this package if generating multiple schemas, e.g. org.jooq.generated.schema1, org.jooq.generated.schema2

    • setPackageName

      public void setPackageName(String value)
      The destination package of your generated classes (within the destination directory)

      jOOQ may append the schema name to this package if generating multiple schemas, e.g. org.jooq.generated.schema1, org.jooq.generated.schema2

    • getDirectory

      public String getDirectory()
      The destination directory of your generated classes
    • setDirectory

      public void setDirectory(String value)
      The destination directory of your generated classes
    • getEncoding

      public String getEncoding()
      The file encoding to be used with all output files.
    • setEncoding

      public void setEncoding(String value)
      The file encoding to be used with all output files.
    • getLocale

      public String getLocale()
      The locale to be used with all locale specific operations.
    • setLocale

      public void setLocale(String value)
      The locale to be used with all locale specific operations.
    • isClean

      public Boolean isClean()
      Whether the target package should be cleaned to contain only generated code after a generation run.
      Returns:
      possible object is Boolean
    • setClean

      public void setClean(Boolean value)
      Whether the target package should be cleaned to contain only generated code after a generation run.
      Parameters:
      value - allowed object is Boolean
    • withPackageName

      public Target withPackageName(String value)
      The destination package of your generated classes (within the destination directory)

      jOOQ may append the schema name to this package if generating multiple schemas, e.g. org.jooq.generated.schema1, org.jooq.generated.schema2

    • withDirectory

      public Target withDirectory(String value)
      The destination directory of your generated classes
    • withEncoding

      public Target withEncoding(String value)
      The file encoding to be used with all output files.
    • withLocale

      public Target withLocale(String value)
      The locale to be used with all locale specific operations.
    • withClean

      public Target withClean(Boolean value)
      Whether the target package should be cleaned to contain only generated code after a generation run.
    • appendTo

      public final void appendTo(XMLBuilder builder)
      Specified by:
      appendTo in interface XMLAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object