Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.jooq.util.xml.jaxb.InformationSchema Maven / Gradle / Ivy
package org.jooq.util.xml.jaxb;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementWrapper;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jooq.util.jaxb.tools.XMLAppendable;
import org.jooq.util.jaxb.tools.XMLBuilder;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="catalogs" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Catalogs" minOccurs="0"/>
* <element name="schemata" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Schemata" minOccurs="0"/>
* <element name="sequences" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Sequences" minOccurs="0"/>
* <element name="tables" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Tables" minOccurs="0"/>
* <element name="views" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Views" minOccurs="0"/>
* <element name="columns" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Columns" minOccurs="0"/>
* <element name="table_constraints" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}TableConstraints" minOccurs="0"/>
* <element name="key_column_usages" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}KeyColumnUsages" minOccurs="0"/>
* <element name="referential_constraints" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}ReferentialConstraints" minOccurs="0"/>
* <element name="check_constraints" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}CheckConstraints" minOccurs="0"/>
* <element name="domains" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Domains" minOccurs="0"/>
* <element name="domain_constraints" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}DomainConstraints" minOccurs="0"/>
* <element name="indexes" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Indexes" minOccurs="0"/>
* <element name="index_column_usages" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}IndexColumnUsages" minOccurs="0"/>
* <element name="routines" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Routines" minOccurs="0"/>
* <element name="parameters" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}Parameters" minOccurs="0"/>
* <element name="element_types" type="{http://www.jooq.org/xsd/jooq-meta-3.16.0.xsd}ElementTypes" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
@XmlRootElement(name = "information_schema")
@SuppressWarnings({
"all"
})
public class InformationSchema implements Serializable, XMLAppendable
{
private final static long serialVersionUID = 31600L;
@XmlElementWrapper(name = "catalogs")
@XmlElement(name = "catalog")
protected List catalogs;
@XmlElementWrapper(name = "schemata")
@XmlElement(name = "schema")
protected List schemata;
@XmlElementWrapper(name = "sequences")
@XmlElement(name = "sequence")
protected List sequences;
@XmlElementWrapper(name = "tables")
@XmlElement(name = "table")
protected List tables;
@XmlElementWrapper(name = "views")
@XmlElement(name = "view")
protected List views;
@XmlElementWrapper(name = "columns")
@XmlElement(name = "column")
protected List columns;
@XmlElementWrapper(name = "table_constraints")
@XmlElement(name = "table_constraint")
protected List tableConstraints;
@XmlElementWrapper(name = "key_column_usages")
@XmlElement(name = "key_column_usage")
protected List keyColumnUsages;
@XmlElementWrapper(name = "referential_constraints")
@XmlElement(name = "referential_constraint")
protected List referentialConstraints;
@XmlElementWrapper(name = "check_constraints")
@XmlElement(name = "check_constraint")
protected List checkConstraints;
@XmlElementWrapper(name = "domains")
@XmlElement(name = "domain")
protected List domains;
@XmlElementWrapper(name = "domain_constraints")
@XmlElement(name = "domainConstraint")
protected List domainConstraints;
@XmlElementWrapper(name = "indexes")
@XmlElement(name = "index")
protected List indexes;
@XmlElementWrapper(name = "index_column_usages")
@XmlElement(name = "index_column_usage")
protected List indexColumnUsages;
@XmlElementWrapper(name = "routines")
@XmlElement(name = "routine")
protected List routines;
@XmlElementWrapper(name = "parameters")
@XmlElement(name = "parameter")
protected List parameters;
@XmlElementWrapper(name = "element_types")
@XmlElement(name = "element_type")
protected List elementTypes;
public List getCatalogs() {
if (catalogs == null) {
catalogs = new ArrayList();
}
return catalogs;
}
public void setCatalogs(List catalogs) {
this.catalogs = catalogs;
}
public List getSchemata() {
if (schemata == null) {
schemata = new ArrayList();
}
return schemata;
}
public void setSchemata(List schemata) {
this.schemata = schemata;
}
public List getSequences() {
if (sequences == null) {
sequences = new ArrayList();
}
return sequences;
}
public void setSequences(List sequences) {
this.sequences = sequences;
}
public List getTables() {
if (tables == null) {
tables = new ArrayList();
}
return tables;
}
public void setTables(List tables) {
this.tables = tables;
}
public List getViews() {
if (views == null) {
views = new ArrayList();
}
return views;
}
public void setViews(List views) {
this.views = views;
}
public List getColumns() {
if (columns == null) {
columns = new ArrayList();
}
return columns;
}
public void setColumns(List columns) {
this.columns = columns;
}
public List getTableConstraints() {
if (tableConstraints == null) {
tableConstraints = new ArrayList();
}
return tableConstraints;
}
public void setTableConstraints(List tableConstraints) {
this.tableConstraints = tableConstraints;
}
public List getKeyColumnUsages() {
if (keyColumnUsages == null) {
keyColumnUsages = new ArrayList();
}
return keyColumnUsages;
}
public void setKeyColumnUsages(List keyColumnUsages) {
this.keyColumnUsages = keyColumnUsages;
}
public List getReferentialConstraints() {
if (referentialConstraints == null) {
referentialConstraints = new ArrayList();
}
return referentialConstraints;
}
public void setReferentialConstraints(List referentialConstraints) {
this.referentialConstraints = referentialConstraints;
}
public List getCheckConstraints() {
if (checkConstraints == null) {
checkConstraints = new ArrayList();
}
return checkConstraints;
}
public void setCheckConstraints(List checkConstraints) {
this.checkConstraints = checkConstraints;
}
public List getDomains() {
if (domains == null) {
domains = new ArrayList();
}
return domains;
}
public void setDomains(List domains) {
this.domains = domains;
}
public List getDomainConstraints() {
if (domainConstraints == null) {
domainConstraints = new ArrayList();
}
return domainConstraints;
}
public void setDomainConstraints(List domainConstraints) {
this.domainConstraints = domainConstraints;
}
public List getIndexes() {
if (indexes == null) {
indexes = new ArrayList();
}
return indexes;
}
public void setIndexes(List indexes) {
this.indexes = indexes;
}
public List getIndexColumnUsages() {
if (indexColumnUsages == null) {
indexColumnUsages = new ArrayList();
}
return indexColumnUsages;
}
public void setIndexColumnUsages(List indexColumnUsages) {
this.indexColumnUsages = indexColumnUsages;
}
public List getRoutines() {
if (routines == null) {
routines = new ArrayList();
}
return routines;
}
public void setRoutines(List routines) {
this.routines = routines;
}
public List getParameters() {
if (parameters == null) {
parameters = new ArrayList();
}
return parameters;
}
public void setParameters(List parameters) {
this.parameters = parameters;
}
public List getElementTypes() {
if (elementTypes == null) {
elementTypes = new ArrayList();
}
return elementTypes;
}
public void setElementTypes(List elementTypes) {
this.elementTypes = elementTypes;
}
public InformationSchema withCatalogs(Catalog... values) {
if (values!= null) {
for (Catalog value: values) {
getCatalogs().add(value);
}
}
return this;
}
public InformationSchema withCatalogs(Collection values) {
if (values!= null) {
getCatalogs().addAll(values);
}
return this;
}
public InformationSchema withCatalogs(List catalogs) {
setCatalogs(catalogs);
return this;
}
public InformationSchema withSchemata(Schema... values) {
if (values!= null) {
for (Schema value: values) {
getSchemata().add(value);
}
}
return this;
}
public InformationSchema withSchemata(Collection values) {
if (values!= null) {
getSchemata().addAll(values);
}
return this;
}
public InformationSchema withSchemata(List schemata) {
setSchemata(schemata);
return this;
}
public InformationSchema withSequences(Sequence... values) {
if (values!= null) {
for (Sequence value: values) {
getSequences().add(value);
}
}
return this;
}
public InformationSchema withSequences(Collection values) {
if (values!= null) {
getSequences().addAll(values);
}
return this;
}
public InformationSchema withSequences(List sequences) {
setSequences(sequences);
return this;
}
public InformationSchema withTables(Table... values) {
if (values!= null) {
for (Table value: values) {
getTables().add(value);
}
}
return this;
}
public InformationSchema withTables(Collection values) {
if (values!= null) {
getTables().addAll(values);
}
return this;
}
public InformationSchema withTables(List tables) {
setTables(tables);
return this;
}
public InformationSchema withViews(View... values) {
if (values!= null) {
for (View value: values) {
getViews().add(value);
}
}
return this;
}
public InformationSchema withViews(Collection values) {
if (values!= null) {
getViews().addAll(values);
}
return this;
}
public InformationSchema withViews(List views) {
setViews(views);
return this;
}
public InformationSchema withColumns(Column... values) {
if (values!= null) {
for (Column value: values) {
getColumns().add(value);
}
}
return this;
}
public InformationSchema withColumns(Collection values) {
if (values!= null) {
getColumns().addAll(values);
}
return this;
}
public InformationSchema withColumns(List columns) {
setColumns(columns);
return this;
}
public InformationSchema withTableConstraints(TableConstraint... values) {
if (values!= null) {
for (TableConstraint value: values) {
getTableConstraints().add(value);
}
}
return this;
}
public InformationSchema withTableConstraints(Collection values) {
if (values!= null) {
getTableConstraints().addAll(values);
}
return this;
}
public InformationSchema withTableConstraints(List tableConstraints) {
setTableConstraints(tableConstraints);
return this;
}
public InformationSchema withKeyColumnUsages(KeyColumnUsage... values) {
if (values!= null) {
for (KeyColumnUsage value: values) {
getKeyColumnUsages().add(value);
}
}
return this;
}
public InformationSchema withKeyColumnUsages(Collection values) {
if (values!= null) {
getKeyColumnUsages().addAll(values);
}
return this;
}
public InformationSchema withKeyColumnUsages(List keyColumnUsages) {
setKeyColumnUsages(keyColumnUsages);
return this;
}
public InformationSchema withReferentialConstraints(ReferentialConstraint... values) {
if (values!= null) {
for (ReferentialConstraint value: values) {
getReferentialConstraints().add(value);
}
}
return this;
}
public InformationSchema withReferentialConstraints(Collection values) {
if (values!= null) {
getReferentialConstraints().addAll(values);
}
return this;
}
public InformationSchema withReferentialConstraints(List referentialConstraints) {
setReferentialConstraints(referentialConstraints);
return this;
}
public InformationSchema withCheckConstraints(CheckConstraint... values) {
if (values!= null) {
for (CheckConstraint value: values) {
getCheckConstraints().add(value);
}
}
return this;
}
public InformationSchema withCheckConstraints(Collection values) {
if (values!= null) {
getCheckConstraints().addAll(values);
}
return this;
}
public InformationSchema withCheckConstraints(List checkConstraints) {
setCheckConstraints(checkConstraints);
return this;
}
public InformationSchema withDomains(Domain... values) {
if (values!= null) {
for (Domain value: values) {
getDomains().add(value);
}
}
return this;
}
public InformationSchema withDomains(Collection values) {
if (values!= null) {
getDomains().addAll(values);
}
return this;
}
public InformationSchema withDomains(List domains) {
setDomains(domains);
return this;
}
public InformationSchema withDomainConstraints(DomainConstraint... values) {
if (values!= null) {
for (DomainConstraint value: values) {
getDomainConstraints().add(value);
}
}
return this;
}
public InformationSchema withDomainConstraints(Collection values) {
if (values!= null) {
getDomainConstraints().addAll(values);
}
return this;
}
public InformationSchema withDomainConstraints(List domainConstraints) {
setDomainConstraints(domainConstraints);
return this;
}
public InformationSchema withIndexes(Index... values) {
if (values!= null) {
for (Index value: values) {
getIndexes().add(value);
}
}
return this;
}
public InformationSchema withIndexes(Collection values) {
if (values!= null) {
getIndexes().addAll(values);
}
return this;
}
public InformationSchema withIndexes(List indexes) {
setIndexes(indexes);
return this;
}
public InformationSchema withIndexColumnUsages(IndexColumnUsage... values) {
if (values!= null) {
for (IndexColumnUsage value: values) {
getIndexColumnUsages().add(value);
}
}
return this;
}
public InformationSchema withIndexColumnUsages(Collection values) {
if (values!= null) {
getIndexColumnUsages().addAll(values);
}
return this;
}
public InformationSchema withIndexColumnUsages(List indexColumnUsages) {
setIndexColumnUsages(indexColumnUsages);
return this;
}
public InformationSchema withRoutines(Routine... values) {
if (values!= null) {
for (Routine value: values) {
getRoutines().add(value);
}
}
return this;
}
public InformationSchema withRoutines(Collection values) {
if (values!= null) {
getRoutines().addAll(values);
}
return this;
}
public InformationSchema withRoutines(List routines) {
setRoutines(routines);
return this;
}
public InformationSchema withParameters(Parameter... values) {
if (values!= null) {
for (Parameter value: values) {
getParameters().add(value);
}
}
return this;
}
public InformationSchema withParameters(Collection values) {
if (values!= null) {
getParameters().addAll(values);
}
return this;
}
public InformationSchema withParameters(List parameters) {
setParameters(parameters);
return this;
}
public InformationSchema withElementTypes(ElementType... values) {
if (values!= null) {
for (ElementType value: values) {
getElementTypes().add(value);
}
}
return this;
}
public InformationSchema withElementTypes(Collection values) {
if (values!= null) {
getElementTypes().addAll(values);
}
return this;
}
public InformationSchema withElementTypes(List elementTypes) {
setElementTypes(elementTypes);
return this;
}
@Override
public final void appendTo(XMLBuilder builder) {
builder.append("catalogs", "catalog", catalogs);
builder.append("schemata", "schema", schemata);
builder.append("sequences", "sequence", sequences);
builder.append("tables", "table", tables);
builder.append("views", "view", views);
builder.append("columns", "column", columns);
builder.append("table_constraints", "table_constraint", tableConstraints);
builder.append("key_column_usages", "key_column_usage", keyColumnUsages);
builder.append("referential_constraints", "referential_constraint", referentialConstraints);
builder.append("check_constraints", "check_constraint", checkConstraints);
builder.append("domains", "domain", domains);
builder.append("domain_constraints", "domainConstraint", domainConstraints);
builder.append("indexes", "index", indexes);
builder.append("index_column_usages", "index_column_usage", indexColumnUsages);
builder.append("routines", "routine", routines);
builder.append("parameters", "parameter", parameters);
builder.append("element_types", "element_type", elementTypes);
}
@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;
}
InformationSchema other = ((InformationSchema) that);
if (catalogs == null) {
if (other.catalogs!= null) {
return false;
}
} else {
if (!catalogs.equals(other.catalogs)) {
return false;
}
}
if (schemata == null) {
if (other.schemata!= null) {
return false;
}
} else {
if (!schemata.equals(other.schemata)) {
return false;
}
}
if (sequences == null) {
if (other.sequences!= null) {
return false;
}
} else {
if (!sequences.equals(other.sequences)) {
return false;
}
}
if (tables == null) {
if (other.tables!= null) {
return false;
}
} else {
if (!tables.equals(other.tables)) {
return false;
}
}
if (views == null) {
if (other.views!= null) {
return false;
}
} else {
if (!views.equals(other.views)) {
return false;
}
}
if (columns == null) {
if (other.columns!= null) {
return false;
}
} else {
if (!columns.equals(other.columns)) {
return false;
}
}
if (tableConstraints == null) {
if (other.tableConstraints!= null) {
return false;
}
} else {
if (!tableConstraints.equals(other.tableConstraints)) {
return false;
}
}
if (keyColumnUsages == null) {
if (other.keyColumnUsages!= null) {
return false;
}
} else {
if (!keyColumnUsages.equals(other.keyColumnUsages)) {
return false;
}
}
if (referentialConstraints == null) {
if (other.referentialConstraints!= null) {
return false;
}
} else {
if (!referentialConstraints.equals(other.referentialConstraints)) {
return false;
}
}
if (checkConstraints == null) {
if (other.checkConstraints!= null) {
return false;
}
} else {
if (!checkConstraints.equals(other.checkConstraints)) {
return false;
}
}
if (domains == null) {
if (other.domains!= null) {
return false;
}
} else {
if (!domains.equals(other.domains)) {
return false;
}
}
if (domainConstraints == null) {
if (other.domainConstraints!= null) {
return false;
}
} else {
if (!domainConstraints.equals(other.domainConstraints)) {
return false;
}
}
if (indexes == null) {
if (other.indexes!= null) {
return false;
}
} else {
if (!indexes.equals(other.indexes)) {
return false;
}
}
if (indexColumnUsages == null) {
if (other.indexColumnUsages!= null) {
return false;
}
} else {
if (!indexColumnUsages.equals(other.indexColumnUsages)) {
return false;
}
}
if (routines == null) {
if (other.routines!= null) {
return false;
}
} else {
if (!routines.equals(other.routines)) {
return false;
}
}
if (parameters == null) {
if (other.parameters!= null) {
return false;
}
} else {
if (!parameters.equals(other.parameters)) {
return false;
}
}
if (elementTypes == null) {
if (other.elementTypes!= null) {
return false;
}
} else {
if (!elementTypes.equals(other.elementTypes)) {
return false;
}
}
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = ((prime*result)+((catalogs == null)? 0 :catalogs.hashCode()));
result = ((prime*result)+((schemata == null)? 0 :schemata.hashCode()));
result = ((prime*result)+((sequences == null)? 0 :sequences.hashCode()));
result = ((prime*result)+((tables == null)? 0 :tables.hashCode()));
result = ((prime*result)+((views == null)? 0 :views.hashCode()));
result = ((prime*result)+((columns == null)? 0 :columns.hashCode()));
result = ((prime*result)+((tableConstraints == null)? 0 :tableConstraints.hashCode()));
result = ((prime*result)+((keyColumnUsages == null)? 0 :keyColumnUsages.hashCode()));
result = ((prime*result)+((referentialConstraints == null)? 0 :referentialConstraints.hashCode()));
result = ((prime*result)+((checkConstraints == null)? 0 :checkConstraints.hashCode()));
result = ((prime*result)+((domains == null)? 0 :domains.hashCode()));
result = ((prime*result)+((domainConstraints == null)? 0 :domainConstraints.hashCode()));
result = ((prime*result)+((indexes == null)? 0 :indexes.hashCode()));
result = ((prime*result)+((indexColumnUsages == null)? 0 :indexColumnUsages.hashCode()));
result = ((prime*result)+((routines == null)? 0 :routines.hashCode()));
result = ((prime*result)+((parameters == null)? 0 :parameters.hashCode()));
result = ((prime*result)+((elementTypes == null)? 0 :elementTypes.hashCode()));
return result;
}
}