package org.jooq.util.xml.jaxb;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jooq.util.jaxb.tools.StringAdapter;
import org.jooq.util.jaxb.tools.XMLAppendable;
import org.jooq.util.jaxb.tools.XMLBuilder;


Java class for Table complex type.

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

<complexType name="Table">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <all>
        <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="table_type" type="{http://www.jooq.org/xsd/jooq-meta-3.14.0.xsd}TableType" minOccurs="0"/>
        <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
      </all>
    </restriction>
  </complexContent>
</complexType>
/** * <p>Java class for Table complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="Table"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;all&gt; * &lt;element name="table_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="table_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="table_name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;element name="table_type" type="{http://www.jooq.org/xsd/jooq-meta-3.14.0.xsd}TableType" minOccurs="0"/&gt; * &lt;element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;/all&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Table", propOrder = { }) @SuppressWarnings({ "all" }) public class Table implements Serializable, XMLAppendable { private final static long serialVersionUID = 31400L; @XmlElement(name = "table_catalog") @XmlJavaTypeAdapter(StringAdapter.class) protected String tableCatalog; @XmlElement(name = "table_schema") @XmlJavaTypeAdapter(StringAdapter.class) protected String tableSchema; @XmlElement(name = "table_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String tableName; @XmlElement(name = "table_type", defaultValue = "BASE TABLE") @XmlSchemaType(name = "string") protected TableType tableType = TableType.BASE_TABLE; @XmlJavaTypeAdapter(StringAdapter.class) protected String comment; public String getTableCatalog() { return tableCatalog; } public void setTableCatalog(String value) { this.tableCatalog = value; } public String getTableSchema() { return tableSchema; } public void setTableSchema(String value) { this.tableSchema = value; } public String getTableName() { return tableName; } public void setTableName(String value) { this.tableName = value; } public TableType getTableType() { return tableType; } public void setTableType(TableType value) { this.tableType = value; } public String getComment() { return comment; } public void setComment(String value) { this.comment = value; } public Table withTableCatalog(String value) { setTableCatalog(value); return this; } public Table withTableSchema(String value) { setTableSchema(value); return this; } public Table withTableName(String value) { setTableName(value); return this; } public Table withTableType(TableType value) { setTableType(value); return this; } public Table withComment(String value) { setComment(value); return this; } @Override public final void appendTo(XMLBuilder builder) { builder.append("table_catalog", tableCatalog); builder.append("table_schema", tableSchema); builder.append("table_name", tableName); builder.append("table_type", tableType); builder.append("comment", comment); } @Override public String toString() { XMLBuilder builder = XMLBuilder.nonFormatting(); appendTo(builder); return builder.toString(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass()!= that.getClass()) { return false; } Table other = ((Table) that); if (tableCatalog == null) { if (other.tableCatalog!= null) { return false; } } else { if (!tableCatalog.equals(other.tableCatalog)) { return false; } } if (tableSchema == null) { if (other.tableSchema!= null) { return false; } } else { if (!tableSchema.equals(other.tableSchema)) { return false; } } if (tableName == null) { if (other.tableName!= null) { return false; } } else { if (!tableName.equals(other.tableName)) { return false; } } if (tableType == null) { if (other.tableType!= null) { return false; } } else { if (!tableType.equals(other.tableType)) { return false; } } if (comment == null) { if (other.comment!= null) { return false; } } else { if (!comment.equals(other.comment)) { return false; } } return true; } @Override public int hashCode() { final int prime = 31; int result = 1; result = ((prime*result)+((tableCatalog == null)? 0 :tableCatalog.hashCode())); result = ((prime*result)+((tableSchema == null)? 0 :tableSchema.hashCode())); result = ((prime*result)+((tableName == null)? 0 :tableName.hashCode())); result = ((prime*result)+((tableType == null)? 0 :tableType.hashCode())); result = ((prime*result)+((comment == null)? 0 :comment.hashCode())); return result; } }