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

📄 order.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Sujatha
 * @Version                       : 1.0
 *
 * Development Environment        : Oracle9i JDeveloper
 * Name of the File               : Order.java
 * Creation/Modification History  :
 *
 * Sujatha    11-Dec-2002      Created
 *
 */
package oracle.otnsamples.vsm.services.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * This class defines member variables which represent all the information of
 * an order placed by an user. This class is used to pass order related data
 * to the clients from the services layer and vice versa.
 *
 * @author Sujatha
 * @version 1.0
 */
public class Order implements java.io.Serializable {

  private Date orderDate; // Date on which order was placed
  private Integer zip; // Zip code of the location where the order has to be shipped
  private List orderDetail; // List of order items in the order
  private String address; // Shipping address of the order
  private String city; // City where the order has to be shipped
  private String countryID; // Country ID where the order has to be shipped
  private String id; // Order ID
  private String phone; // Contact information of the user who placed the order
  private String state; // State where the order has to be shipped
  private String userName; // User who placed the order

  /**
   * Default constructor, takes no arguments
   */
  public Order() {
  }
  /**
   * The constructor creates a profile with the specified values
   *
   * @param <b>id</b> id of the order
   * @param <b>orderDate</b> date when the order was placed
   * @param <b>userName</b> userName of the user who placed the order
   * @param <b>address</b> address of the user
   * @param <b>city</b> city of the user
   * @param <b>state</b> state of the user
   * @param <b>countryId</b> country of the user
   * @param <b>zipCode</b> zip code of the user
   * @param <b>phone</b> phone number of the user
   * @param <b>shopID</b> Shop from which the item was purchased
   * @param <b>orderDetail</b> List of order items in the order
   */
  public Order(
               String id, Date orderDate, String userName, String address,
               String city, String state, String countryID, Integer zip,
               String phone, List orderDetail) {
    this.id            = id;
    this.orderDate     = orderDate;
    this.userName      = userName;
    this.address       = address;
    this.city          = city;
    this.state         = state;
    this.countryID     = countryID;
    this.zip           = zip;
    this.phone         = phone;
    this.orderDetail   = new ArrayList(orderDetail);
  }

  /**
   * Gets the order id
   *
   * @return <b>String</b> id of the order
   */
  public String getId() {

    return id;
  }
  /**
   * Sets the order id
   *
   * @param <b>newID</b> id of the order
   */
  public void setId(String newID) {
    id = newID;
  }
  /**
   * Gets the order date
   *
   * @return <b>Date</b> date when the order was placed
   */
  public Date getOrderDate() {

    return orderDate;
  }
  /**
   * Sets the date of the order
   *
   * @param <b>orderDate</b> order date
   */
  public void setOrderDate(Date orderDate) {
    this.orderDate = orderDate;
  }
  /**
   * Gets the user name
   *
   * @return <b>String</b> user who placed the order
   */
  public String getUserName() {

    return userName;
  }
  /**
   * Sets the user name
   *
   * @param <b>userName</b> user who placed the order
   */
  public void setUserName(String userName) {
    this.userName = userName;
  }
  /**
   * Gets the address
   *
   * @return <b>String</b> address of the user
   */
  public String getAddress() {

    return address;
  }
  /**
   * Sets the address
   *
   * @param <b>address</b> address of the user
   */
  public void setAddress(String address) {
    this.address = address;
  }
  /**
   * Gets the city
   *
   * @return <b>String</b> city of the user
   */
  public String getCity() {

    return city;
  }
  /**
   * Sets the city
   *
   * @param <b>city</b> city of the user
   */
  public void setCity(String city) {
    this.city = city;
  }
  /**
   * Gets the state
   *
   * @return <b>String</b> state of the user
   */
  public String getState() {

    return state;
  }
  /**
   * Sets the state
   *
   * @param <b>state</b> state of the user
   */
  public void setState(String state) {
    this.state = state;
  }
  /**
   * Gets the country code
   *
   * @return <b>String</b> country code
   */
  public String getCountry() {

    return countryID;
  }
  /**
   * Sets the country code
   *
   * @param <b>country</b> country code
   */
  public void setCountry(String country) {
    this.countryID = country;
  }
  /**
   * Gets the zip code of the user
   *
   * @return <b>Integer</b> zip code
   */
  public Integer getZip() {

    return zip;
  }
  /**
   * Gets the zip code of the user
   *
   * @param <b>zip</b> zip code
   */
  public void setZip(Integer zip) {
    this.zip = zip;
  }
  /**
   * Gets the phone number of the user
   *
   * @return <b>String</b> phone number
   */
  public String getPhone() {

    return phone;
  }
  /**
   * Gets the phone number of the user
   *
   * @param <b>phone</b> phone number
   */
  public void setPhone(String phone) {
    this.phone = phone;
  }
  /**
   * Gets the order items in this order
   *
   * @return <b>List</b> list of order items
   */
  public List getOrderDetail() {

    return orderDetail;
  }
  /**
   * Sets the order items for this order
   *
   * @param <b>orderDetail</b> list of order items
   */
  public void setOrderDetail(List orderDetail) {
    this.orderDetail = orderDetail;
  }
}

⌨️ 快捷键说明

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