/**
 * AddDrugTrace.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.wsVeterinary;

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

    private java.util.Calendar date;

    private java.lang.String drugNo;

    private java.lang.String approval;

    private java.lang.String batchNo;

    private java.lang.String type;

    public AddDrugTrace() {
    }

    public AddDrugTrace(
           java.lang.String farmNO,
           java.util.Calendar date,
           java.lang.String drugNo,
           java.lang.String approval,
           java.lang.String batchNo,
           java.lang.String type) {
           this.farmNO = farmNO;
           this.date = date;
           this.drugNo = drugNo;
           this.approval = approval;
           this.batchNo = batchNo;
           this.type = type;
    }


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


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


    /**
     * Gets the date value for this AddDrugTrace.
     * 
     * @return date
     */
    public java.util.Calendar getDate() {
        return date;
    }


    /**
     * Sets the date value for this AddDrugTrace.
     * 
     * @param date
     */
    public void setDate(java.util.Calendar date) {
        this.date = date;
    }


    /**
     * Gets the drugNo value for this AddDrugTrace.
     * 
     * @return drugNo
     */
    public java.lang.String getDrugNo() {
        return drugNo;
    }


    /**
     * Sets the drugNo value for this AddDrugTrace.
     * 
     * @param drugNo
     */
    public void setDrugNo(java.lang.String drugNo) {
        this.drugNo = drugNo;
    }


    /**
     * Gets the approval value for this AddDrugTrace.
     * 
     * @return approval
     */
    public java.lang.String getApproval() {
        return approval;
    }


    /**
     * Sets the approval value for this AddDrugTrace.
     * 
     * @param approval
     */
    public void setApproval(java.lang.String approval) {
        this.approval = approval;
    }


    /**
     * Gets the batchNo value for this AddDrugTrace.
     * 
     * @return batchNo
     */
    public java.lang.String getBatchNo() {
        return batchNo;
    }


    /**
     * Sets the batchNo value for this AddDrugTrace.
     * 
     * @param batchNo
     */
    public void setBatchNo(java.lang.String batchNo) {
        this.batchNo = batchNo;
    }


    /**
     * Gets the type value for this AddDrugTrace.
     * 
     * @return type
     */
    public java.lang.String getType() {
        return type;
    }


    /**
     * Sets the type value for this AddDrugTrace.
     * 
     * @param type
     */
    public void setType(java.lang.String type) {
        this.type = type;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AddDrugTrace)) return false;
        AddDrugTrace other = (AddDrugTrace) 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.date==null && other.getDate()==null) || 
             (this.date!=null &&
              this.date.equals(other.getDate()))) &&
            ((this.drugNo==null && other.getDrugNo()==null) || 
             (this.drugNo!=null &&
              this.drugNo.equals(other.getDrugNo()))) &&
            ((this.approval==null && other.getApproval()==null) || 
             (this.approval!=null &&
              this.approval.equals(other.getApproval()))) &&
            ((this.batchNo==null && other.getBatchNo()==null) || 
             (this.batchNo!=null &&
              this.batchNo.equals(other.getBatchNo()))) &&
            ((this.type==null && other.getType()==null) || 
             (this.type!=null &&
              this.type.equals(other.getType())));
        __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 (getDate() != null) {
            _hashCode += getDate().hashCode();
        }
        if (getDrugNo() != null) {
            _hashCode += getDrugNo().hashCode();
        }
        if (getApproval() != null) {
            _hashCode += getApproval().hashCode();
        }
        if (getBatchNo() != null) {
            _hashCode += getBatchNo().hashCode();
        }
        if (getType() != null) {
            _hashCode += getType().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">AddDrugTrace"));
        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("date");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "date"));
        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("drugNo");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "drugNo"));
        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("approval");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "Approval"));
        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("batchNo");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "batchNo"));
        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("type");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "type"));
        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);
    }

}
