java.lang.Object
org.jooq.meta.jaxb.SyntheticEnumType
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidappendTo(XMLBuilder builder) booleanThe enum comment.A regular expression matching all fields on which to apply this synthetic enum type.A SQL query producing the literals.getName()The optional enum name.A regular expression matching all tables on which to apply this synthetic enum type.inthashCode()Set this flag to true if no warning should be logged if this object was not used by a code generation run.The list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible.The matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table).voidsetComment(String value) The enum comment.voidA regular expression matching all fields on which to apply this synthetic enum type.voidsetIgnoreUnused(Boolean value) Set this flag to true if no warning should be logged if this object was not used by a code generation run.voidsetLiterals(List<String> literals) voidThe list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible.voidThe matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table).voidsetLiteralSql(String value) A SQL query producing the literals.voidThe optional enum name.voidA regular expression matching all tables on which to apply this synthetic enum type.toString()withComment(String value) The enum comment.withFields(String value) A regular expression matching all fields on which to apply this synthetic enum type.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(String... values) withLiterals(Collection<String> values) withLiterals(List<String> literals) The list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible.The matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table).withLiteralSql(String value) A SQL query producing the literals.The optional enum name.withTables(String value) A regular expression matching all tables on which to apply this synthetic enum type.
-
Field Details
-
name
-
tables
-
fields
-
literalSql
-
literalsFromColumnContent
-
literalsFromCheckConstraints
-
comment
-
ignoreUnused
-
literals
-
-
Constructor Details
-
SyntheticEnumType
public SyntheticEnumType()
-
-
Method Details
-
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
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
A regular expression matching all tables on which to apply this synthetic enum type. -
setTables
A regular expression matching all tables on which to apply this synthetic enum type. -
getFields
A regular expression matching all fields on which to apply this synthetic enum type. -
setFields
A regular expression matching all fields on which to apply this synthetic enum type. -
getLiteralSql
A SQL query producing the literals. -
setLiteralSql
A SQL query producing the literals. -
isLiteralsFromColumnContent
The matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table).- Returns:
- possible object is
Boolean
-
setLiteralsFromColumnContent
The matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table).- Parameters:
value- allowed object isBoolean
-
isLiteralsFromCheckConstraints
The list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible.- Returns:
- possible object is
Boolean
-
setLiteralsFromCheckConstraints
The list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible.- Parameters:
value- allowed object isBoolean
-
getComment
The enum comment. -
setComment
The enum comment. -
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
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 isBoolean
-
getLiterals
-
setLiterals
-
withName
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
A regular expression matching all tables on which to apply this synthetic enum type. -
withFields
A regular expression matching all fields on which to apply this synthetic enum type. -
withLiteralSql
A SQL query producing the literals. -
withLiteralsFromColumnContent
The matched column's content defines the literals (this is convenience forliteralSqlbeingSELECT DISTINCT matched_column FROM matched_table). -
withLiteralsFromCheckConstraints
The list of literals is parsed from the applicableCHECKconstraints for the matched column, if possible. -
withComment
The enum comment. -
withIgnoreUnused
Set this flag to true if no warning should be logged if this object was not used by a code generation run. -
withLiterals
-
withLiterals
-
withLiterals
-
appendTo
- Specified by:
appendToin interfaceXMLAppendable
-
toString
-
equals
-
hashCode
public int hashCode()
-