⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderitemdto.java

📁 《精通SOA:基于服务总线的Struts+EJB+Web Service整合应用开发》原书的实例代码
💻 JAVA
字号:
/**
 * OrderItemDTO.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2RC1 Sep 29, 2004 (08:29:40 EDT) WSDL2Java emitter.
 */

package com.bkstore.model.service.dto;

public class OrderItemDTO  implements java.io.Serializable {
    private java.lang.Integer bookID;
    private java.lang.Integer orderItemNum;
    private java.lang.Integer orderID;
    private java.math.BigDecimal discount;
    private java.lang.Integer quantity;

    public OrderItemDTO() {
    }

    public OrderItemDTO(
           java.lang.Integer bookID,
           java.lang.Integer orderItemNum,
           java.lang.Integer orderID,
           java.math.BigDecimal discount,
           java.lang.Integer quantity) {
           this.bookID = bookID;
           this.orderItemNum = orderItemNum;
           this.orderID = orderID;
           this.discount = discount;
           this.quantity = quantity;
    }


    /**
     * Gets the bookID value for this OrderItemDTO.
     * 
     * @return bookID
     */
    public java.lang.Integer getBookID() {
        return bookID;
    }


    /**
     * Sets the bookID value for this OrderItemDTO.
     * 
     * @param bookID
     */
    public void setBookID(java.lang.Integer bookID) {
        this.bookID = bookID;
    }


    /**
     * Gets the orderItemNum value for this OrderItemDTO.
     * 
     * @return orderItemNum
     */
    public java.lang.Integer getOrderItemNum() {
        return orderItemNum;
    }


    /**
     * Sets the orderItemNum value for this OrderItemDTO.
     * 
     * @param orderItemNum
     */
    public void setOrderItemNum(java.lang.Integer orderItemNum) {
        this.orderItemNum = orderItemNum;
    }


    /**
     * Gets the orderID value for this OrderItemDTO.
     * 
     * @return orderID
     */
    public java.lang.Integer getOrderID() {
        return orderID;
    }


    /**
     * Sets the orderID value for this OrderItemDTO.
     * 
     * @param orderID
     */
    public void setOrderID(java.lang.Integer orderID) {
        this.orderID = orderID;
    }


    /**
     * Gets the discount value for this OrderItemDTO.
     * 
     * @return discount
     */
    public java.math.BigDecimal getDiscount() {
        return discount;
    }


    /**
     * Sets the discount value for this OrderItemDTO.
     * 
     * @param discount
     */
    public void setDiscount(java.math.BigDecimal discount) {
        this.discount = discount;
    }


    /**
     * Gets the quantity value for this OrderItemDTO.
     * 
     * @return quantity
     */
    public java.lang.Integer getQuantity() {
        return quantity;
    }


    /**
     * Sets the quantity value for this OrderItemDTO.
     * 
     * @param quantity
     */
    public void setQuantity(java.lang.Integer quantity) {
        this.quantity = quantity;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof OrderItemDTO)) return false;
        OrderItemDTO other = (OrderItemDTO) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.bookID==null && other.getBookID()==null) || 
             (this.bookID!=null &&
              this.bookID.equals(other.getBookID()))) &&
            ((this.orderItemNum==null && other.getOrderItemNum()==null) || 
             (this.orderItemNum!=null &&
              this.orderItemNum.equals(other.getOrderItemNum()))) &&
            ((this.orderID==null && other.getOrderID()==null) || 
             (this.orderID!=null &&
              this.orderID.equals(other.getOrderID()))) &&
            ((this.discount==null && other.getDiscount()==null) || 
             (this.discount!=null &&
              this.discount.equals(other.getDiscount()))) &&
            ((this.quantity==null && other.getQuantity()==null) || 
             (this.quantity!=null &&
              this.quantity.equals(other.getQuantity())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getBookID() != null) {
            _hashCode += getBookID().hashCode();
        }
        if (getOrderItemNum() != null) {
            _hashCode += getOrderItemNum().hashCode();
        }
        if (getOrderID() != null) {
            _hashCode += getOrderID().hashCode();
        }
        if (getDiscount() != null) {
            _hashCode += getDiscount().hashCode();
        }
        if (getQuantity() != null) {
            _hashCode += getQuantity().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://dto.service.model.bkstore.com", "OrderItemDTO"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("bookID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "bookID"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("orderItemNum");
        elemField.setXmlName(new javax.xml.namespace.QName("", "orderItemNum"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("orderID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "orderID"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("discount");
        elemField.setXmlName(new javax.xml.namespace.QName("", "discount"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("quantity");
        elemField.setXmlName(new javax.xml.namespace.QName("", "quantity"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        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);
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -