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

📄 bookdto.java

📁 《精通SOA:基于服务总线的Struts+EJB+Web Service整合应用开发》原书的实例代码
💻 JAVA
字号:
/**
 * BookDTO.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 BookDTO  implements java.io.Serializable {
    private java.math.BigDecimal unitPrice;
    private java.lang.String author;
    private java.lang.String bookContent;
    private java.lang.Integer bookID;
    private java.lang.String bookName;
    private java.math.BigDecimal discount;
    private java.lang.String isbn;
    private java.lang.String press;
    private java.lang.Long publishingDate;

    public BookDTO() {
    }

    public BookDTO(
           java.math.BigDecimal unitPrice,
           java.lang.String author,
           java.lang.String bookContent,
           java.lang.Integer bookID,
           java.lang.String bookName,
           java.math.BigDecimal discount,
           java.lang.String isbn,
           java.lang.String press,
           java.lang.Long publishingDate) {
           this.unitPrice = unitPrice;
           this.author = author;
           this.bookContent = bookContent;
           this.bookID = bookID;
           this.bookName = bookName;
           this.discount = discount;
           this.isbn = isbn;
           this.press = press;
           this.publishingDate = publishingDate;
    }


    /**
     * Gets the unitPrice value for this BookDTO.
     * 
     * @return unitPrice
     */
    public java.math.BigDecimal getUnitPrice() {
        return unitPrice;
    }


    /**
     * Sets the unitPrice value for this BookDTO.
     * 
     * @param unitPrice
     */
    public void setUnitPrice(java.math.BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }


    /**
     * Gets the author value for this BookDTO.
     * 
     * @return author
     */
    public java.lang.String getAuthor() {
        return author;
    }


    /**
     * Sets the author value for this BookDTO.
     * 
     * @param author
     */
    public void setAuthor(java.lang.String author) {
        this.author = author;
    }


    /**
     * Gets the bookContent value for this BookDTO.
     * 
     * @return bookContent
     */
    public java.lang.String getBookContent() {
        return bookContent;
    }


    /**
     * Sets the bookContent value for this BookDTO.
     * 
     * @param bookContent
     */
    public void setBookContent(java.lang.String bookContent) {
        this.bookContent = bookContent;
    }


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


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


    /**
     * Gets the bookName value for this BookDTO.
     * 
     * @return bookName
     */
    public java.lang.String getBookName() {
        return bookName;
    }


    /**
     * Sets the bookName value for this BookDTO.
     * 
     * @param bookName
     */
    public void setBookName(java.lang.String bookName) {
        this.bookName = bookName;
    }


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


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


    /**
     * Gets the isbn value for this BookDTO.
     * 
     * @return isbn
     */
    public java.lang.String getIsbn() {
        return isbn;
    }


    /**
     * Sets the isbn value for this BookDTO.
     * 
     * @param isbn
     */
    public void setIsbn(java.lang.String isbn) {
        this.isbn = isbn;
    }


    /**
     * Gets the press value for this BookDTO.
     * 
     * @return press
     */
    public java.lang.String getPress() {
        return press;
    }


    /**
     * Sets the press value for this BookDTO.
     * 
     * @param press
     */
    public void setPress(java.lang.String press) {
        this.press = press;
    }


    /**
     * Gets the publishingDate value for this BookDTO.
     * 
     * @return publishingDate
     */
    public java.lang.Long getPublishingDate() {
        return publishingDate;
    }


    /**
     * Sets the publishingDate value for this BookDTO.
     * 
     * @param publishingDate
     */
    public void setPublishingDate(java.lang.Long publishingDate) {
        this.publishingDate = publishingDate;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof BookDTO)) return false;
        BookDTO other = (BookDTO) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.unitPrice==null && other.getUnitPrice()==null) || 
             (this.unitPrice!=null &&
              this.unitPrice.equals(other.getUnitPrice()))) &&
            ((this.author==null && other.getAuthor()==null) || 
             (this.author!=null &&
              this.author.equals(other.getAuthor()))) &&
            ((this.bookContent==null && other.getBookContent()==null) || 
             (this.bookContent!=null &&
              this.bookContent.equals(other.getBookContent()))) &&
            ((this.bookID==null && other.getBookID()==null) || 
             (this.bookID!=null &&
              this.bookID.equals(other.getBookID()))) &&
            ((this.bookName==null && other.getBookName()==null) || 
             (this.bookName!=null &&
              this.bookName.equals(other.getBookName()))) &&
            ((this.discount==null && other.getDiscount()==null) || 
             (this.discount!=null &&
              this.discount.equals(other.getDiscount()))) &&
            ((this.isbn==null && other.getIsbn()==null) || 
             (this.isbn!=null &&
              this.isbn.equals(other.getIsbn()))) &&
            ((this.press==null && other.getPress()==null) || 
             (this.press!=null &&
              this.press.equals(other.getPress()))) &&
            ((this.publishingDate==null && other.getPublishingDate()==null) || 
             (this.publishingDate!=null &&
              this.publishingDate.equals(other.getPublishingDate())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getUnitPrice() != null) {
            _hashCode += getUnitPrice().hashCode();
        }
        if (getAuthor() != null) {
            _hashCode += getAuthor().hashCode();
        }
        if (getBookContent() != null) {
            _hashCode += getBookContent().hashCode();
        }
        if (getBookID() != null) {
            _hashCode += getBookID().hashCode();
        }
        if (getBookName() != null) {
            _hashCode += getBookName().hashCode();
        }
        if (getDiscount() != null) {
            _hashCode += getDiscount().hashCode();
        }
        if (getIsbn() != null) {
            _hashCode += getIsbn().hashCode();
        }
        if (getPress() != null) {
            _hashCode += getPress().hashCode();
        }
        if (getPublishingDate() != null) {
            _hashCode += getPublishingDate().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://dto.service.model.bkstore.com", "BookDTO"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("unitPrice");
        elemField.setXmlName(new javax.xml.namespace.QName("", "unitPrice"));
        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("author");
        elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("bookContent");
        elemField.setXmlName(new javax.xml.namespace.QName("", "bookContent"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        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("bookName");
        elemField.setXmlName(new javax.xml.namespace.QName("", "bookName"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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("isbn");
        elemField.setXmlName(new javax.xml.namespace.QName("", "isbn"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("press");
        elemField.setXmlName(new javax.xml.namespace.QName("", "press"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("publishingDate");
        elemField.setXmlName(new javax.xml.namespace.QName("", "publishingDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        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 + -