All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jooq.util.xml.jaxb.CheckConstraint Maven / Gradle / Ivy

There is a newer version: 3.19.15
Show 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.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 CheckConstraint complex type. * *

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

 * <complexType name="CheckConstraint">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="constraint_catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="constraint_schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="constraint_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="check_clause" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CheckConstraint", propOrder = { }) @SuppressWarnings({ "all" }) public class CheckConstraint implements Serializable, XMLAppendable { private final static long serialVersionUID = 31900L; @XmlElement(name = "constraint_catalog") @XmlJavaTypeAdapter(StringAdapter.class) protected String constraintCatalog; @XmlElement(name = "constraint_schema") @XmlJavaTypeAdapter(StringAdapter.class) protected String constraintSchema; @XmlElement(name = "constraint_name", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String constraintName; @XmlElement(name = "check_clause", required = true) @XmlJavaTypeAdapter(StringAdapter.class) protected String checkClause; public String getConstraintCatalog() { return constraintCatalog; } public void setConstraintCatalog(String value) { this.constraintCatalog = value; } public String getConstraintSchema() { return constraintSchema; } public void setConstraintSchema(String value) { this.constraintSchema = value; } public String getConstraintName() { return constraintName; } public void setConstraintName(String value) { this.constraintName = value; } public String getCheckClause() { return checkClause; } public void setCheckClause(String value) { this.checkClause = value; } public CheckConstraint withConstraintCatalog(String value) { setConstraintCatalog(value); return this; } public CheckConstraint withConstraintSchema(String value) { setConstraintSchema(value); return this; } public CheckConstraint withConstraintName(String value) { setConstraintName(value); return this; } public CheckConstraint withCheckClause(String value) { setCheckClause(value); return this; } @Override public final void appendTo(XMLBuilder builder) { builder.append("constraint_catalog", constraintCatalog); builder.append("constraint_schema", constraintSchema); builder.append("constraint_name", constraintName); builder.append("check_clause", checkClause); } @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; } CheckConstraint other = ((CheckConstraint) that); if (constraintCatalog == null) { if (other.constraintCatalog!= null) { return false; } } else { if (!constraintCatalog.equals(other.constraintCatalog)) { return false; } } if (constraintSchema == null) { if (other.constraintSchema!= null) { return false; } } else { if (!constraintSchema.equals(other.constraintSchema)) { return false; } } if (constraintName == null) { if (other.constraintName!= null) { return false; } } else { if (!constraintName.equals(other.constraintName)) { return false; } } if (checkClause == null) { if (other.checkClause!= null) { return false; } } else { if (!checkClause.equals(other.checkClause)) { return false; } } return true; } @Override public int hashCode() { final int prime = 31; int result = 1; result = ((prime*result)+((constraintCatalog == null)? 0 :constraintCatalog.hashCode())); result = ((prime*result)+((constraintSchema == null)? 0 :constraintSchema.hashCode())); result = ((prime*result)+((constraintName == null)? 0 :constraintName.hashCode())); result = ((prime*result)+((checkClause == null)? 0 :checkClause.hashCode())); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy