package org.jooq.conf;
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.XmlType;
import org.jooq.util.jaxb.tools.XMLAppendable;
import org.jooq.util.jaxb.tools.XMLBuilder;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ParseSearchSchema", propOrder = {
})
@SuppressWarnings({
"all"
})
public class ParseSearchSchema
extends SettingsBase
implements Serializable, Cloneable, XMLAppendable
{
private final static long serialVersionUID = 31400L;
protected String catalog;
@XmlElement(required = true)
protected String schema;
public String getCatalog() {
return catalog;
}
public void setCatalog(String value) {
this.catalog = value;
}
public String getSchema() {
return schema;
}
public void setSchema(String value) {
this.schema = value;
}
public ParseSearchSchema withCatalog(String value) {
setCatalog(value);
return this;
}
public ParseSearchSchema withSchema(String value) {
setSchema(value);
return this;
}
@Override
public final void appendTo(XMLBuilder builder) {
builder.append("catalog", catalog);
builder.append("schema", schema);
}
@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;
}
ParseSearchSchema other = ((ParseSearchSchema) that);
if (catalog == null) {
if (other.catalog!= null) {
return false;
}
} else {
if (!catalog.equals(other.catalog)) {
return false;
}
}
if (schema == null) {
if (other.schema!= null) {
return false;
}
} else {
if (!schema.equals(other.schema)) {
return false;
}
}
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = ((prime*result)+((catalog == null)? 0 :catalog.hashCode()));
result = ((prime*result)+((schema == null)? 0 :schema.hashCode()));
return result;
}
}