org.jooq.util.xml.jaxb.Parameter Maven / Gradle / Ivy
The newest version!
package org.jooq.util.xml.jaxb;
import java.io.Serializable;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.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 Parameter complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Parameter">
* <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"/>
* <element name="ordinal_position" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="parameter_mode" type="{http://www.jooq.org/xsd/jooq-meta-3.19.0.xsd}ParameterMode"/>
* <element name="parameter_name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <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="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>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Parameter", propOrder = {
})
@SuppressWarnings({
"all"
})
public class Parameter implements Serializable, XMLAppendable
{
private final static long serialVersionUID = 31900L;
@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", required = true)
@XmlJavaTypeAdapter(StringAdapter.class)
protected String specificName;
@XmlElement(name = "ordinal_position")
protected int ordinalPosition;
@XmlElement(name = "parameter_mode", required = true)
@XmlSchemaType(name = "string")
protected ParameterMode parameterMode;
@XmlElement(name = "parameter_name")
@XmlJavaTypeAdapter(StringAdapter.class)
protected String parameterName;
@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;
@XmlElement(name = "parameter_default")
@XmlJavaTypeAdapter(StringAdapter.class)
protected String parameterDefault;
@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 int getOrdinalPosition() {
return ordinalPosition;
}
public void setOrdinalPosition(int value) {
this.ordinalPosition = value;
}
public ParameterMode getParameterMode() {
return parameterMode;
}
public void setParameterMode(ParameterMode value) {
this.parameterMode = value;
}
public String getParameterName() {
return parameterName;
}
public void setParameterName(String value) {
this.parameterName = 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 getParameterDefault() {
return parameterDefault;
}
public void setParameterDefault(String value) {
this.parameterDefault = value;
}
public String getComment() {
return comment;
}
public void setComment(String value) {
this.comment = value;
}
public Parameter withSpecificCatalog(String value) {
setSpecificCatalog(value);
return this;
}
public Parameter withSpecificSchema(String value) {
setSpecificSchema(value);
return this;
}
public Parameter withSpecificPackage(String value) {
setSpecificPackage(value);
return this;
}
public Parameter withSpecificName(String value) {
setSpecificName(value);
return this;
}
public Parameter withOrdinalPosition(int value) {
setOrdinalPosition(value);
return this;
}
public Parameter withParameterMode(ParameterMode value) {
setParameterMode(value);
return this;
}
public Parameter withParameterName(String value) {
setParameterName(value);
return this;
}
public Parameter withDataType(String value) {
setDataType(value);
return this;
}
public Parameter withCharacterMaximumLength(Integer value) {
setCharacterMaximumLength(value);
return this;
}
public Parameter withNumericPrecision(Integer value) {
setNumericPrecision(value);
return this;
}
public Parameter withNumericScale(Integer value) {
setNumericScale(value);
return this;
}
public Parameter withUdtCatalog(String value) {
setUdtCatalog(value);
return this;
}
public Parameter withUdtSchema(String value) {
setUdtSchema(value);
return this;
}
public Parameter withUdtName(String value) {
setUdtName(value);
return this;
}
public Parameter withParameterDefault(String value) {
setParameterDefault(value);
return this;
}
public Parameter 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("ordinal_position", ordinalPosition);
builder.append("parameter_mode", parameterMode);
builder.append("parameter_name", parameterName);
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("parameter_default", parameterDefault);
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;
}
Parameter other = ((Parameter) 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 (ordinalPosition!= other.ordinalPosition) {
return false;
}
if (parameterMode == null) {
if (other.parameterMode!= null) {
return false;
}
} else {
if (!parameterMode.equals(other.parameterMode)) {
return false;
}
}
if (parameterName == null) {
if (other.parameterName!= null) {
return false;
}
} else {
if (!parameterName.equals(other.parameterName)) {
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 (parameterDefault == null) {
if (other.parameterDefault!= null) {
return false;
}
} else {
if (!parameterDefault.equals(other.parameterDefault)) {
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)+ ordinalPosition);
result = ((prime*result)+((parameterMode == null)? 0 :parameterMode.hashCode()));
result = ((prime*result)+((parameterName == null)? 0 :parameterName.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)+((parameterDefault == null)? 0 :parameterDefault.hashCode()));
result = ((prime*result)+((comment == null)? 0 :comment.hashCode()));
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy