cartitem.java

来自「使用EJB实现的网上商城」· Java 代码 · 共 69 行

JAVA
69
字号
package com.jdon.estore.model;

import com.jdon.controller.model.Model;

public class CartItem implements Model {

  private String itemId;
  private String productId;
  private String name;
  private int qty;
  private float listprice;

  public CartItem(){

  }


  public CartItem(String itemId, String productId, String name,
                  int quantity, float listprice) {

    this.itemId = itemId;
    this.productId = productId;
    this.name = name;
    this.qty = quantity;
    this.listprice = listprice;
  }

  public String getItemId() {
    return itemId;
  }

  public void setItemId(String itemId) {
    this.itemId = itemId;
  }


  public String getProductId() {
    return productId;
  }

  public void setProductId(String productId) {
    this.productId = productId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getQty() {
    return qty;
  }

  public void setQty(int qty) {
    this.qty = qty;
  }

  public float getListprice() {
    return listprice;
  }

  public void setListprice(float listprice) {
    this.listprice = listprice;
  }

}

⌨️ 快捷键说明

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