01: package net.ar.webonswing.petstore.model;
02:
03: import java.io.*;
04:
05: public class Item implements Serializable {
06: protected String description;
07: protected Integer id;
08: protected String imagePath;
09: protected String itemId;
10: protected double listPrice;
11: protected Product product;
12: protected double unitCost;
13:
14: public Item() {
15: }
16:
17: public Item(String anItemId, String aDescription,
18: double aListPrice, double anUnitCost, String anImagePath) {
19: itemId = anItemId;
20: description = aDescription;
21: listPrice = aListPrice;
22: unitCost = anUnitCost;
23: imagePath = anImagePath;
24: }
25:
26: public String getDescription() {
27: return description;
28: }
29:
30: public Integer getId() {
31: return id;
32: }
33:
34: public String getImagePath() {
35: return imagePath;
36: }
37:
38: public String getItemId() {
39: return itemId;
40: }
41:
42: public double getListPrice() {
43: return listPrice;
44: }
45:
46: public Product getProduct() {
47: return product;
48: }
49:
50: public double getUnitCost() {
51: return unitCost;
52: }
53:
54: public void setDescription(String description) {
55: this .description = description;
56: }
57:
58: public void setId(Integer id) {
59: this .id = id;
60: }
61:
62: public void setImagePath(String imagePath) {
63: this .imagePath = imagePath;
64: }
65:
66: public void setItemId(String itemId) {
67: this .itemId = itemId;
68: }
69:
70: public void setListPrice(double listPrice) {
71: this .listPrice = listPrice;
72: }
73:
74: public void setProduct(Product product) {
75: this .product = product;
76: }
77:
78: public void setUnitCost(double unitCost) {
79: this.unitCost = unitCost;
80: }
81: }
|