QueryData.java 9.3 KB
/**
 * QueryData.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package billcheckservice;

public class QueryData  implements java.io.Serializable {
    private int end_position;

    private java.lang.String end_time;

    private int page_length;

    private int pubstation_code;

    private int start_page;

    private int start_position;

    private java.lang.String start_time;

    public QueryData() {
    }

    public QueryData(
           int end_position,
           java.lang.String end_time,
           int page_length,
           int pubstation_code,
           int start_page,
           int start_position,
           java.lang.String start_time) {
           this.end_position = end_position;
           this.end_time = end_time;
           this.page_length = page_length;
           this.pubstation_code = pubstation_code;
           this.start_page = start_page;
           this.start_position = start_position;
           this.start_time = start_time;
    }


    /**
     * Gets the end_position value for this QueryData.
     * 
     * @return end_position
     */
    public int getEnd_position() {
        return end_position;
    }


    /**
     * Sets the end_position value for this QueryData.
     * 
     * @param end_position
     */
    public void setEnd_position(int end_position) {
        this.end_position = end_position;
    }


    /**
     * Gets the end_time value for this QueryData.
     * 
     * @return end_time
     */
    public java.lang.String getEnd_time() {
        return end_time;
    }


    /**
     * Sets the end_time value for this QueryData.
     * 
     * @param end_time
     */
    public void setEnd_time(java.lang.String end_time) {
        this.end_time = end_time;
    }


    /**
     * Gets the page_length value for this QueryData.
     * 
     * @return page_length
     */
    public int getPage_length() {
        return page_length;
    }


    /**
     * Sets the page_length value for this QueryData.
     * 
     * @param page_length
     */
    public void setPage_length(int page_length) {
        this.page_length = page_length;
    }


    /**
     * Gets the pubstation_code value for this QueryData.
     * 
     * @return pubstation_code
     */
    public int getPubstation_code() {
        return pubstation_code;
    }


    /**
     * Sets the pubstation_code value for this QueryData.
     * 
     * @param pubstation_code
     */
    public void setPubstation_code(int pubstation_code) {
        this.pubstation_code = pubstation_code;
    }


    /**
     * Gets the start_page value for this QueryData.
     * 
     * @return start_page
     */
    public int getStart_page() {
        return start_page;
    }


    /**
     * Sets the start_page value for this QueryData.
     * 
     * @param start_page
     */
    public void setStart_page(int start_page) {
        this.start_page = start_page;
    }


    /**
     * Gets the start_position value for this QueryData.
     * 
     * @return start_position
     */
    public int getStart_position() {
        return start_position;
    }


    /**
     * Sets the start_position value for this QueryData.
     * 
     * @param start_position
     */
    public void setStart_position(int start_position) {
        this.start_position = start_position;
    }


    /**
     * Gets the start_time value for this QueryData.
     * 
     * @return start_time
     */
    public java.lang.String getStart_time() {
        return start_time;
    }


    /**
     * Sets the start_time value for this QueryData.
     * 
     * @param start_time
     */
    public void setStart_time(java.lang.String start_time) {
        this.start_time = start_time;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof QueryData)) return false;
        QueryData other = (QueryData) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            this.end_position == other.getEnd_position() &&
            ((this.end_time==null && other.getEnd_time()==null) || 
             (this.end_time!=null &&
              this.end_time.equals(other.getEnd_time()))) &&
            this.page_length == other.getPage_length() &&
            this.pubstation_code == other.getPubstation_code() &&
            this.start_page == other.getStart_page() &&
            this.start_position == other.getStart_position() &&
            ((this.start_time==null && other.getStart_time()==null) || 
             (this.start_time!=null &&
              this.start_time.equals(other.getStart_time())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        _hashCode += getEnd_position();
        if (getEnd_time() != null) {
            _hashCode += getEnd_time().hashCode();
        }
        _hashCode += getPage_length();
        _hashCode += getPubstation_code();
        _hashCode += getStart_page();
        _hashCode += getStart_position();
        if (getStart_time() != null) {
            _hashCode += getStart_time().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(QueryData.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://service/", "queryData"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("end_position");
        elemField.setXmlName(new javax.xml.namespace.QName("", "end_position"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("end_time");
        elemField.setXmlName(new javax.xml.namespace.QName("", "end_time"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("page_length");
        elemField.setXmlName(new javax.xml.namespace.QName("", "page_length"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("pubstation_code");
        elemField.setXmlName(new javax.xml.namespace.QName("", "pubstation_code"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("start_page");
        elemField.setXmlName(new javax.xml.namespace.QName("", "start_page"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("start_position");
        elemField.setXmlName(new javax.xml.namespace.QName("", "start_position"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("start_time");
        elemField.setXmlName(new javax.xml.namespace.QName("", "start_time"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}