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

📄 item.java

📁 用JBuilder+Jboos+mysql实现的EJB项目
💻 JAVA
字号:
package com.jdon.estore.model;

import java.util.*;
import com.jdon.controller.model.Model;

public class Item implements Model{

  private String itemId;
  private String name;
  private float listprice;
  private float unitcost;
  private float qty;
  private byte[] image;
  private String description;
  private String productId;

  private Collection attrs = new ArrayList();

  public Item(){

  }

  public Item(String itemId, String name, float unitcost, float listprice){
    this.itemId = itemId;
    this.name = name;
    this.unitcost = unitcost;
    this.listprice = listprice;
  }

  public Item(String name, Float unitcost, Float listprice){
    this.name = name;
    this.unitcost = unitcost.floatValue();
    this.listprice = listprice.floatValue();
  }


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

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

  public String getDescription() {
    return description;
  }
  public void setDescription(String description) {
    this.description = description;
  }

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

  public float getUnitcost() {
    return unitcost;
  }
  public void setUnitcost(float unitcost) {
    this.unitcost = unitcost;
  }

  public Collection getAttrs() {
    return attrs;
  }
  public void setAttrs(Collection attrs) {
    this.attrs = attrs;
  }

  public float getQty() {
    return qty;
  }
  public void setQty(float qty) {
    this.qty = qty;
  }

  public String getProductId() {
     return productId;
   }

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

  public void setImage(byte[] image) {
   this.image = image;
 }

 public byte[] getImage() {
   return image;
 }


}

⌨️ 快捷键说明

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