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 Routine complex type.

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

<complexType name="Routine">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <all>
        <element name="specific_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="specific_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="specific_package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="specific_name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="routine_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="routine_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="routine_package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="routine_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
        <element name="routine_type" type="{http://www.jooq.org/xsd/jooq-meta-3.14.0.xsd}RoutineType"/>
        <element name="data_type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <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="udt_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="udt_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="udt_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>
</complexType>
/** * <p>Java class for Routine complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="Routine"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;all&gt; * &lt;element name="specific_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="specific_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="specific_package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="specific_name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="routine_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="routine_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="routine_package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="routine_name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;element name="routine_type" type="{http://www.jooq.org/xsd/jooq-meta-3.14.0.xsd}RoutineType"/&gt; * &lt;element name="data_type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="character_maximum_length" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt; * &lt;element name="numeric_precision" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt; * &lt;element name="numeric_scale" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt; * &lt;element name="udt_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="udt_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="udt_name" type="{http://www.w3.org/2001/XMLSchema}string" 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 = "Routine", propOrder = { }) @SuppressWarnings({ "all" }) public class Routine implements Serializable, XMLAppendable { private final static long serialVersionUID = 31400L; @XmlElement(name = "specific_catalog") @XmlJavaTypeAdapter(StringAdapter.class) protected String specificCatalog; @XmlElement(name = "specific_schema") @XmlJavaTypeAdapter(StringAdapter.class) protected String specificSchema; @XmlElement(name = "specific_package") @XmlJavaTypeAdapter(StringAdapter.class) protected String specificPackage; @XmlElement(name = "specific_name") @XmlJavaTypeAdapter(StringAdapter.class) protected String specificName; @XmlElement(name = "routine_catalog") @XmlJavaTypeAdapter(StringAdapter.class) protected String routineCatalog; @XmlElement(name = "routine_schema") @XmlJavaTypeAdapter(StringAdapter.class) protected String routineSchema; @XmlElement(name = "routine_package") @XmlJavaTypeAdapter(StringAdapter.class) protected String routinePackage; @XmlElement(name = "routine_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String routineName; @XmlElement(name = "routine_type", required = true) @XmlSchemaType(name = "string") protected RoutineType routineType; @XmlElement(name = "data_type") @XmlJavaTypeAdapter(StringAdapter.class) protected String dataType; @XmlElement(name = "character_maximum_length") protected Integer characterMaximumLength; @XmlElement(name = "numeric_precision") protected Integer numericPrecision; @XmlElement(name = "numeric_scale") protected Integer numericScale; @XmlElement(name = "udt_catalog") @XmlJavaTypeAdapter(StringAdapter.class) protected String udtCatalog; @XmlElement(name = "udt_schema") @XmlJavaTypeAdapter(StringAdapter.class) protected String udtSchema; @XmlElement(name = "udt_name") @XmlJavaTypeAdapter(StringAdapter.class) protected String udtName; @XmlJavaTypeAdapter(StringAdapter.class) protected String comment; public String getSpecificCatalog() { return specificCatalog; } public void setSpecificCatalog(String value) { this.specificCatalog = value; } public String getSpecificSchema() { return specificSchema; } public void setSpecificSchema(String value) { this.specificSchema = value; } public String getSpecificPackage() { return specificPackage; } public void setSpecificPackage(String value) { this.specificPackage = value; } public String getSpecificName() { return specificName; } public void setSpecificName(String value) { this.specificName = value; } public String getRoutineCatalog() { return routineCatalog; } public void setRoutineCatalog(String value) { this.routineCatalog = value; } public String getRoutineSchema() { return routineSchema; } public void setRoutineSchema(String value) { this.routineSchema = value; } public String getRoutinePackage() { return routinePackage; } public void setRoutinePackage(String value) { this.routinePackage = value; } public String getRoutineName() { return routineName; } public void setRoutineName(String value) { this.routineName = value; } public RoutineType getRoutineType() { return routineType; } public void setRoutineType(RoutineType value) { this.routineType = value; } public String getDataType() { return dataType; } public void setDataType(String value) { this.dataType = value; } public Integer getCharacterMaximumLength() { return characterMaximumLength; } public void setCharacterMaximumLength(Integer value) { this.characterMaximumLength = value; } public Integer getNumericPrecision() { return numericPrecision; } public void setNumericPrecision(Integer value) { this.numericPrecision = value; } public Integer getNumericScale() { return numericScale; } public void setNumericScale(Integer value) { this.numericScale = value; } public String getUdtCatalog() { return udtCatalog; } public void setUdtCatalog(String value) { this.udtCatalog = value; } public String getUdtSchema() { return udtSchema; } public void setUdtSchema(String value) { this.udtSchema = value; } public String getUdtName() { return udtName; } public void setUdtName(String value) { this.udtName = value; } public String getComment() { return comment; } public void setComment(String value) { this.comment = value; } public Routine withSpecificCatalog(String value) { setSpecificCatalog(value); return this; } public Routine withSpecificSchema(String value) { setSpecificSchema(value); return this; } public Routine withSpecificPackage(String value) { setSpecificPackage(value); return this; } public Routine withSpecificName(String value) { setSpecificName(value); return this; } public Routine withRoutineCatalog(String value) { setRoutineCatalog(value); return this; } public Routine withRoutineSchema(String value) { setRoutineSchema(value); return this; } public Routine withRoutinePackage(String value) { setRoutinePackage(value); return this; } public Routine withRoutineName(String value) { setRoutineName(value); return this; } public Routine withRoutineType(RoutineType value) { setRoutineType(value); return this; } public Routine withDataType(String value) { setDataType(value); return this; } public Routine withCharacterMaximumLength(Integer value) { setCharacterMaximumLength(value); return this; } public Routine withNumericPrecision(Integer value) { setNumericPrecision(value); return this; } public Routine withNumericScale(Integer value) { setNumericScale(value); return this; } public Routine withUdtCatalog(String value) { setUdtCatalog(value); return this; } public Routine withUdtSchema(String value) { setUdtSchema(value); return this; } public Routine withUdtName(String value) { setUdtName(value); return this; } public Routine withComment(String value) { setComment(value); return this; } @Override public final void appendTo(XMLBuilder builder) { builder.append("specific_catalog", specificCatalog); builder.append("specific_schema", specificSchema); builder.append("specific_package", specificPackage); builder.append("specific_name", specificName); builder.append("routine_catalog", routineCatalog); builder.append("routine_schema", routineSchema); builder.append("routine_package", routinePackage); builder.append("routine_name", routineName); builder.append("routine_type", routineType); builder.append("data_type", dataType); builder.append("character_maximum_length", characterMaximumLength); builder.append("numeric_precision", numericPrecision); builder.append("numeric_scale", numericScale); builder.append("udt_catalog", udtCatalog); builder.append("udt_schema", udtSchema); builder.append("udt_name", udtName); 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; } Routine other = ((Routine) that); if (specificCatalog == null) { if (other.specificCatalog!= null) { return false; } } else { if (!specificCatalog.equals(other.specificCatalog)) { return false; } } if (specificSchema == null) { if (other.specificSchema!= null) { return false; } } else { if (!specificSchema.equals(other.specificSchema)) { return false; } } if (specificPackage == null) { if (other.specificPackage!= null) { return false; } } else { if (!specificPackage.equals(other.specificPackage)) { return false; } } if (specificName == null) { if (other.specificName!= null) { return false; } } else { if (!specificName.equals(other.specificName)) { return false; } } if (routineCatalog == null) { if (other.routineCatalog!= null) { return false; } } else { if (!routineCatalog.equals(other.routineCatalog)) { return false; } } if (routineSchema == null) { if (other.routineSchema!= null) { return false; } } else { if (!routineSchema.equals(other.routineSchema)) { return false; } } if (routinePackage == null) { if (other.routinePackage!= null) { return false; } } else { if (!routinePackage.equals(other.routinePackage)) { return false; } } if (routineName == null) { if (other.routineName!= null) { return false; } } else { if (!routineName.equals(other.routineName)) { return false; } } if (routineType == null) { if (other.routineType!= null) { return false; } } else { if (!routineType.equals(other.routineType)) { return false; } } if (dataType == null) { if (other.dataType!= null) { return false; } } else { if (!dataType.equals(other.dataType)) { return false; } } if (characterMaximumLength == null) { if (other.characterMaximumLength!= null) { return false; } } else { if (!characterMaximumLength.equals(other.characterMaximumLength)) { return false; } } if (numericPrecision == null) { if (other.numericPrecision!= null) { return false; } } else { if (!numericPrecision.equals(other.numericPrecision)) { return false; } } if (numericScale == null) { if (other.numericScale!= null) { return false; } } else { if (!numericScale.equals(other.numericScale)) { return false; } } if (udtCatalog == null) { if (other.udtCatalog!= null) { return false; } } else { if (!udtCatalog.equals(other.udtCatalog)) { return false; } } if (udtSchema == null) { if (other.udtSchema!= null) { return false; } } else { if (!udtSchema.equals(other.udtSchema)) { return false; } } if (udtName == null) { if (other.udtName!= null) { return false; } } else { if (!udtName.equals(other.udtName)) { 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)+((specificCatalog == null)? 0 :specificCatalog.hashCode())); result = ((prime*result)+((specificSchema == null)? 0 :specificSchema.hashCode())); result = ((prime*result)+((specificPackage == null)? 0 :specificPackage.hashCode())); result = ((prime*result)+((specificName == null)? 0 :specificName.hashCode())); result = ((prime*result)+((routineCatalog == null)? 0 :routineCatalog.hashCode())); result = ((prime*result)+((routineSchema == null)? 0 :routineSchema.hashCode())); result = ((prime*result)+((routinePackage == null)? 0 :routinePackage.hashCode())); result = ((prime*result)+((routineName == null)? 0 :routineName.hashCode())); result = ((prime*result)+((routineType == null)? 0 :routineType.hashCode())); result = ((prime*result)+((dataType == null)? 0 :dataType.hashCode())); result = ((prime*result)+((characterMaximumLength == null)? 0 :characterMaximumLength.hashCode())); result = ((prime*result)+((numericPrecision == null)? 0 :numericPrecision.hashCode())); result = ((prime*result)+((numericScale == null)? 0 :numericScale.hashCode())); result = ((prime*result)+((udtCatalog == null)? 0 :udtCatalog.hashCode())); result = ((prime*result)+((udtSchema == null)? 0 :udtSchema.hashCode())); result = ((prime*result)+((udtName == null)? 0 :udtName.hashCode())); result = ((prime*result)+((comment == null)? 0 :comment.hashCode())); return result; } }