Class SyntheticEnumType

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

public class SyntheticEnumType extends Object implements Serializable, XMLAppendable

Java class for SyntheticEnumType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="SyntheticEnumType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <all>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="tables" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="fields" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="literals" type="{http://www.jooq.org/xsd/jooq-codegen-3.20.9.xsd}SyntheticEnumLiteralsType" minOccurs="0"/>
         <element name="literalSql" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="literalsFromColumnContent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="literalsFromCheckConstraints" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="ignoreUnused" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
       </all>
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

    • name

      protected String name
    • tables

      protected String tables
    • fields

      protected String fields
    • literalSql

      protected String literalSql
    • literalsFromColumnContent

      protected Boolean literalsFromColumnContent
    • literalsFromCheckConstraints

      protected Boolean literalsFromCheckConstraints
    • comment

      protected String comment
    • ignoreUnused

      protected Boolean ignoreUnused
    • literals

      protected List<String> literals
  • Constructor Details

    • SyntheticEnumType

      public SyntheticEnumType()
  • Method Details

    • getName

      public String getName()
      The optional enum name. If provided, then literals must match for each table/field match (though matches are optional). If omitted, then the name is generated based on each table/field match.
    • setName

      public void setName(String value)
      The optional enum name. If provided, then literals must match for each table/field match (though matches are optional). If omitted, then the name is generated based on each table/field match.
    • getTables

      public String getTables()
      A regular expression matching all tables on which to apply this synthetic enum type.
    • setTables

      public void setTables(String value)
      A regular expression matching all tables on which to apply this synthetic enum type.
    • getFields

      public String getFields()
      A regular expression matching all fields on which to apply this synthetic enum type.
    • setFields

      public void setFields(String value)
      A regular expression matching all fields on which to apply this synthetic enum type.
    • getLiteralSql

      public String getLiteralSql()
      A SQL query producing the literals.
    • setLiteralSql

      public void setLiteralSql(String value)
      A SQL query producing the literals.
    • isLiteralsFromColumnContent

      public Boolean isLiteralsFromColumnContent()
      The matched column's content defines the literals (this is convenience for literalSql being SELECT DISTINCT matched_column FROM matched_table).
      Returns:
      possible object is Boolean
    • setLiteralsFromColumnContent

      public void setLiteralsFromColumnContent(Boolean value)
      The matched column's content defines the literals (this is convenience for literalSql being SELECT DISTINCT matched_column FROM matched_table).
      Parameters:
      value - allowed object is Boolean
    • isLiteralsFromCheckConstraints

      public Boolean isLiteralsFromCheckConstraints()
      The list of literals is parsed from the applicable CHECK constraints for the matched column, if possible.
      Returns:
      possible object is Boolean
    • setLiteralsFromCheckConstraints

      public void setLiteralsFromCheckConstraints(Boolean value)
      The list of literals is parsed from the applicable CHECK constraints for the matched column, if possible.
      Parameters:
      value - allowed object is Boolean
    • getComment

      public String getComment()
      The enum comment.
    • setComment

      public void setComment(String value)
      The enum comment.
    • isIgnoreUnused

      public Boolean isIgnoreUnused()
      Set this flag to true if no warning should be logged if this object was not used by a code generation run.
      Returns:
      possible object is Boolean
    • setIgnoreUnused

      public void setIgnoreUnused(Boolean value)
      Set this flag to true if no warning should be logged if this object was not used by a code generation run.
      Parameters:
      value - allowed object is Boolean
    • getLiterals

      public List<String> getLiterals()
    • setLiterals

      public void setLiterals(List<String> literals)
    • withName

      public SyntheticEnumType withName(String value)
      The optional enum name. If provided, then literals must match for each table/field match (though matches are optional). If omitted, then the name is generated based on each table/field match.
    • withTables

      public SyntheticEnumType withTables(String value)
      A regular expression matching all tables on which to apply this synthetic enum type.
    • withFields

      public SyntheticEnumType withFields(String value)
      A regular expression matching all fields on which to apply this synthetic enum type.
    • withLiteralSql

      public SyntheticEnumType withLiteralSql(String value)
      A SQL query producing the literals.
    • withLiteralsFromColumnContent

      public SyntheticEnumType withLiteralsFromColumnContent(Boolean value)
      The matched column's content defines the literals (this is convenience for literalSql being SELECT DISTINCT matched_column FROM matched_table).
    • withLiteralsFromCheckConstraints

      public SyntheticEnumType withLiteralsFromCheckConstraints(Boolean value)
      The list of literals is parsed from the applicable CHECK constraints for the matched column, if possible.
    • withComment

      public SyntheticEnumType withComment(String value)
      The enum comment.
    • withIgnoreUnused

      public SyntheticEnumType withIgnoreUnused(Boolean value)
      Set this flag to true if no warning should be logged if this object was not used by a code generation run.
    • withLiterals

      public SyntheticEnumType withLiterals(String... values)
    • withLiterals

      public SyntheticEnumType withLiterals(Collection<String> values)
    • withLiterals

      public SyntheticEnumType withLiterals(List<String> literals)
    • 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