
org.freebxml.omar.jaxb.bindings.query.AdhocQueryRequest Maven / Gradle / Ivy
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2007.12.21 at 10:41:46 AM CET
//
package org.freebxml.omar.jaxb.bindings.query;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.freebxml.omar.jaxb.bindings.rim.AdhocQueryType;
import org.freebxml.omar.jaxb.bindings.rs.RegistryRequestType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0}RegistryRequestType">
* <sequence>
* <element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0}ResponseOption"/>
* <element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}AdhocQuery"/>
* </sequence>
* <attribute name="federated" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="federation" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="startIndex" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
* <attribute name="maxResults" type="{http://www.w3.org/2001/XMLSchema}integer" default="-1" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"responseOption",
"adhocQuery"
})
@XmlRootElement(name = "AdhocQueryRequest")
@Entity(name = "org.freebxml.omar.jaxb.bindings.query.AdhocQueryRequest")
@Table(name = "ADHOCQUERYREQUEST")
public class AdhocQueryRequest
extends RegistryRequestType
implements Equals, HashCode
{
@XmlElement(name = "ResponseOption", required = true)
protected ResponseOptionType responseOption;
@XmlElement(name = "AdhocQuery", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", required = true)
protected AdhocQueryType adhocQuery;
@XmlAttribute
protected Boolean federated;
@XmlAttribute
@XmlSchemaType(name = "anyURI")
protected String federation;
@XmlAttribute
protected BigInteger startIndex;
@XmlAttribute
protected BigInteger maxResults;
/**
* Gets the value of the responseOption property.
*
* @return
* possible object is
* {@link ResponseOptionType }
*
*/
@ManyToOne(cascade = {
CascadeType.ALL
})
@JoinColumn(name = "RESPONSEOPTION_RESPONSEOPTIO_0")
public ResponseOptionType getResponseOption() {
return responseOption;
}
/**
* Sets the value of the responseOption property.
*
* @param value
* allowed object is
* {@link ResponseOptionType }
*
*/
public void setResponseOption(ResponseOptionType value) {
this.responseOption = value;
}
/**
* Gets the value of the adhocQuery property.
*
* @return
* possible object is
* {@link AdhocQueryType }
*
*/
@ManyToOne(cascade = {
CascadeType.ALL
})
@JoinColumn(name = "ADHOCQUERY_ADHOCQUERYTYPE_ID")
public AdhocQueryType getAdhocQuery() {
return adhocQuery;
}
/**
* Sets the value of the adhocQuery property.
*
* @param value
* allowed object is
* {@link AdhocQueryType }
*
*/
public void setAdhocQuery(AdhocQueryType value) {
this.adhocQuery = value;
}
/**
* Gets the value of the federated property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
@Basic
@Column(name = "FEDERATED")
public boolean isFederated() {
if (federated == null) {
return false;
} else {
return federated;
}
}
/**
* Sets the value of the federated property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setFederated(Boolean value) {
this.federated = value;
}
/**
* Gets the value of the federation property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "FEDERATION")
public String getFederation() {
return federation;
}
/**
* Sets the value of the federation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFederation(String value) {
this.federation = value;
}
/**
* Gets the value of the startIndex property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
@Basic
@Column(name = "STARTINDEX", scale = 0)
public BigInteger getStartIndex() {
if (startIndex == null) {
return new BigInteger("0");
} else {
return startIndex;
}
}
/**
* Sets the value of the startIndex property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setStartIndex(BigInteger value) {
this.startIndex = value;
}
/**
* Gets the value of the maxResults property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
@Basic
@Column(name = "MAXRESULTS", scale = 0)
public BigInteger getMaxResults() {
if (maxResults == null) {
return new BigInteger("-1");
} else {
return maxResults;
}
}
/**
* Sets the value of the maxResults property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaxResults(BigInteger value) {
this.maxResults = value;
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof AdhocQueryRequest)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
super.equals(object, equalsBuilder);
final AdhocQueryRequest that = ((AdhocQueryRequest) object);
equalsBuilder.append(this.getResponseOption(), that.getResponseOption());
equalsBuilder.append(this.getAdhocQuery(), that.getAdhocQuery());
equalsBuilder.append(this.isFederated(), that.isFederated());
equalsBuilder.append(this.getFederation(), that.getFederation());
equalsBuilder.append(this.getStartIndex(), that.getStartIndex());
equalsBuilder.append(this.getMaxResults(), that.getMaxResults());
}
public boolean equals(Object object) {
if (!(object instanceof AdhocQueryRequest)) {
return false;
}
if (this == object) {
return true;
}
final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
equals(object, equalsBuilder);
return equalsBuilder.isEquals();
}
public void hashCode(HashCodeBuilder hashCodeBuilder) {
super.hashCode(hashCodeBuilder);
hashCodeBuilder.append(this.getResponseOption());
hashCodeBuilder.append(this.getAdhocQuery());
hashCodeBuilder.append(this.isFederated());
hashCodeBuilder.append(this.getFederation());
hashCodeBuilder.append(this.getStartIndex());
hashCodeBuilder.append(this.getMaxResults());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy