From 0e0cd604c6311a5cd03ad38be43eb277f470dcd0 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Thu, 4 Jan 2018 16:42:19 +0100 Subject: [PATCH] [#6991] Add comments to jooq-meta.xsd --- .../java/org/jooq/util/xml/jaxb/Catalog.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Column.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Index.java | 32 +++++++++++++++++++ .../org/jooq/util/xml/jaxb/Parameter.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Routine.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Schema.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Sequence.java | 32 +++++++++++++++++++ .../java/org/jooq/util/xml/jaxb/Table.java | 32 +++++++++++++++++++ .../jooq/util/xml/jaxb/TableConstraint.java | 32 +++++++++++++++++++ .../main/resources/xsd/jooq-meta-3.11.0.xsd | 9 ++++++ 10 files changed, 297 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Catalog.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Catalog.java index d3c81ab63d..cd40b25ff2 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Catalog.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Catalog.java @@ -28,6 +28,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <all> * <element name="catalog_name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -50,6 +51,8 @@ public class Catalog implements Serializable @XmlElement(name = "catalog_name") @XmlJavaTypeAdapter(StringAdapter.class) protected String catalogName; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the catalogName property. @@ -75,9 +78,38 @@ public class Catalog implements Serializable this.catalogName = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Catalog withCatalogName(String value) { setCatalogName(value); return this; } + public Catalog withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Column.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Column.java index 9ee951a20d..b5b43a269a 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Column.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Column.java @@ -39,6 +39,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="identity_generation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="is_nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="column_default" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -89,6 +90,8 @@ public class Column implements Serializable @XmlElement(name = "column_default") @XmlJavaTypeAdapter(StringAdapter.class) protected String columnDefault; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the tableCatalog property. @@ -378,6 +381,30 @@ public class Column implements Serializable this.columnDefault = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Column withTableCatalog(String value) { setTableCatalog(value); return this; @@ -438,4 +465,9 @@ public class Column implements Serializable return this; } + public Column withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Index.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Index.java index b6b192a661..a735e0233c 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Index.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Index.java @@ -34,6 +34,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="table_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="table_name" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="is_unique" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -73,6 +74,8 @@ public class Index implements Serializable protected String tableName; @XmlElement(name = "is_unique") protected Boolean isUnique; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the indexCatalog property. @@ -242,6 +245,30 @@ public class Index implements Serializable this.isUnique = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Index withIndexCatalog(String value) { setIndexCatalog(value); return this; @@ -277,4 +304,9 @@ public class Index implements Serializable return this; } + public Index withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Parameter.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Parameter.java index 69d6c9eac8..aa7095aa27 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Parameter.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Parameter.java @@ -40,6 +40,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="numeric_precision" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="numeric_scale" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="parameter_default" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -91,6 +92,8 @@ public class Parameter implements Serializable @XmlElement(name = "parameter_default") @XmlJavaTypeAdapter(StringAdapter.class) protected String parameterDefault; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the specificCatalog property. @@ -372,6 +375,30 @@ public class Parameter implements Serializable this.parameterDefault = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Parameter withSpecificCatalog(String value) { setSpecificCatalog(value); return this; @@ -432,4 +459,9 @@ public class Parameter implements Serializable return this; } + public Parameter withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Routine.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Routine.java index 952e8f5ac5..c28c671eff 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Routine.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Routine.java @@ -41,6 +41,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="character_maximum_length" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="numeric_precision" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="numeric_scale" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -96,6 +97,8 @@ public class Routine implements Serializable protected Integer numericPrecision; @XmlElement(name = "numeric_scale") protected Integer numericScale; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the specificCatalog property. @@ -409,6 +412,30 @@ public class Routine implements Serializable this.numericScale = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Routine withSpecificCatalog(String value) { setSpecificCatalog(value); return this; @@ -474,4 +501,9 @@ public class Routine implements Serializable return this; } + public Routine withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Schema.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Schema.java index 260515f04a..28996c0021 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Schema.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Schema.java @@ -29,6 +29,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <all> * <element name="catalog_name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="schema_name" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -54,6 +55,8 @@ public class Schema implements Serializable @XmlElement(name = "schema_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String schemaName; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the catalogName property. @@ -103,6 +106,30 @@ public class Schema implements Serializable this.schemaName = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Schema withCatalogName(String value) { setCatalogName(value); return this; @@ -113,4 +140,9 @@ public class Schema implements Serializable return this; } + public Schema withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Sequence.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Sequence.java index bc1f9b1ea3..9f9379ad1a 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Sequence.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Sequence.java @@ -34,6 +34,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="character_maximum_length" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="numeric_precision" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * <element name="numeric_scale" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -71,6 +72,8 @@ public class Sequence implements Serializable protected Integer numericPrecision; @XmlElement(name = "numeric_scale") protected Integer numericScale; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the sequenceCatalog property. @@ -240,6 +243,30 @@ public class Sequence implements Serializable this.numericScale = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Sequence withSequenceCatalog(String value) { setSequenceCatalog(value); return this; @@ -275,4 +302,9 @@ public class Sequence implements Serializable return this; } + public Sequence withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Table.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Table.java index 23a879ff22..74c7f22aa2 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Table.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/Table.java @@ -30,6 +30,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="table_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="table_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="table_name" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -58,6 +59,8 @@ public class Table implements Serializable @XmlElement(name = "table_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String tableName; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the tableCatalog property. @@ -131,6 +134,30 @@ public class Table implements Serializable this.tableName = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public Table withTableCatalog(String value) { setTableCatalog(value); return this; @@ -146,4 +173,9 @@ public class Table implements Serializable return this; } + public Table withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/TableConstraint.java b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/TableConstraint.java index fe827ab819..27ff049438 100644 --- a/jOOQ/src/main/java/org/jooq/util/xml/jaxb/TableConstraint.java +++ b/jOOQ/src/main/java/org/jooq/util/xml/jaxb/TableConstraint.java @@ -35,6 +35,7 @@ import org.jooq.util.jaxb.tools.StringAdapter; * <element name="table_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="table_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="table_name" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> @@ -75,6 +76,8 @@ public class TableConstraint implements Serializable @XmlElement(name = "table_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String tableName; + @XmlJavaTypeAdapter(StringAdapter.class) + protected String comment; /** * Gets the value of the constraintCatalog property. @@ -244,6 +247,30 @@ public class TableConstraint implements Serializable this.tableName = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + public TableConstraint withConstraintCatalog(String value) { setConstraintCatalog(value); return this; @@ -279,4 +306,9 @@ public class TableConstraint implements Serializable return this; } + public TableConstraint withComment(String value) { + setComment(value); + return this; + } + } diff --git a/jOOQ/src/main/resources/xsd/jooq-meta-3.11.0.xsd b/jOOQ/src/main/resources/xsd/jooq-meta-3.11.0.xsd index 7deb4b42f5..df9e6147b9 100644 --- a/jOOQ/src/main/resources/xsd/jooq-meta-3.11.0.xsd +++ b/jOOQ/src/main/resources/xsd/jooq-meta-3.11.0.xsd @@ -32,6 +32,7 @@ + @@ -45,6 +46,7 @@ + @@ -63,6 +65,7 @@ + @@ -77,6 +80,7 @@ + @@ -100,6 +104,7 @@ + @@ -118,6 +123,7 @@ + @@ -181,6 +187,7 @@ + @@ -225,6 +232,7 @@ + @@ -255,6 +263,7 @@ +