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

package com.izouma.webservice.wsCow;

public class UploadIdenRateRecord  implements java.io.Serializable {
    private java.lang.String farmNO;

    private java.lang.String cowID;

    private java.lang.String module;

    private java.util.Calendar time;

    private boolean isScan;

    private java.lang.String operators;

    public UploadIdenRateRecord() {
    }

    public UploadIdenRateRecord(
           java.lang.String farmNO,
           java.lang.String cowID,
           java.lang.String module,
           java.util.Calendar time,
           boolean isScan,
           java.lang.String operators) {
           this.farmNO = farmNO;
           this.cowID = cowID;
           this.module = module;
           this.time = time;
           this.isScan = isScan;
           this.operators = operators;
    }


    /**
     * Gets the farmNO value for this UploadIdenRateRecord.
     * 
     * @return farmNO
     */
    public java.lang.String getFarmNO() {
        return farmNO;
    }


    /**
     * Sets the farmNO value for this UploadIdenRateRecord.
     * 
     * @param farmNO
     */
    public void setFarmNO(java.lang.String farmNO) {
        this.farmNO = farmNO;
    }


    /**
     * Gets the cowID value for this UploadIdenRateRecord.
     * 
     * @return cowID
     */
    public java.lang.String getCowID() {
        return cowID;
    }


    /**
     * Sets the cowID value for this UploadIdenRateRecord.
     * 
     * @param cowID
     */
    public void setCowID(java.lang.String cowID) {
        this.cowID = cowID;
    }


    /**
     * Gets the module value for this UploadIdenRateRecord.
     * 
     * @return module
     */
    public java.lang.String getModule() {
        return module;
    }


    /**
     * Sets the module value for this UploadIdenRateRecord.
     * 
     * @param module
     */
    public void setModule(java.lang.String module) {
        this.module = module;
    }


    /**
     * Gets the time value for this UploadIdenRateRecord.
     * 
     * @return time
     */
    public java.util.Calendar getTime() {
        return time;
    }


    /**
     * Sets the time value for this UploadIdenRateRecord.
     * 
     * @param time
     */
    public void setTime(java.util.Calendar time) {
        this.time = time;
    }


    /**
     * Gets the isScan value for this UploadIdenRateRecord.
     * 
     * @return isScan
     */
    public boolean isIsScan() {
        return isScan;
    }


    /**
     * Sets the isScan value for this UploadIdenRateRecord.
     * 
     * @param isScan
     */
    public void setIsScan(boolean isScan) {
        this.isScan = isScan;
    }


    /**
     * Gets the operators value for this UploadIdenRateRecord.
     * 
     * @return operators
     */
    public java.lang.String getOperators() {
        return operators;
    }


    /**
     * Sets the operators value for this UploadIdenRateRecord.
     * 
     * @param operators
     */
    public void setOperators(java.lang.String operators) {
        this.operators = operators;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof UploadIdenRateRecord)) return false;
        UploadIdenRateRecord other = (UploadIdenRateRecord) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.farmNO==null && other.getFarmNO()==null) || 
             (this.farmNO!=null &&
              this.farmNO.equals(other.getFarmNO()))) &&
            ((this.cowID==null && other.getCowID()==null) || 
             (this.cowID!=null &&
              this.cowID.equals(other.getCowID()))) &&
            ((this.module==null && other.getModule()==null) || 
             (this.module!=null &&
              this.module.equals(other.getModule()))) &&
            ((this.time==null && other.getTime()==null) || 
             (this.time!=null &&
              this.time.equals(other.getTime()))) &&
            this.isScan == other.isIsScan() &&
            ((this.operators==null && other.getOperators()==null) || 
             (this.operators!=null &&
              this.operators.equals(other.getOperators())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getFarmNO() != null) {
            _hashCode += getFarmNO().hashCode();
        }
        if (getCowID() != null) {
            _hashCode += getCowID().hashCode();
        }
        if (getModule() != null) {
            _hashCode += getModule().hashCode();
        }
        if (getTime() != null) {
            _hashCode += getTime().hashCode();
        }
        _hashCode += (isIsScan() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        if (getOperators() != null) {
            _hashCode += getOperators().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">UploadIdenRateRecord"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("farmNO");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "farmNO"));
        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("cowID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "cowID"));
        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("module");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "module"));
        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("time");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "time"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isScan");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isScan"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("operators");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "operators"));
        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);
    }

}
