KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibatis > jpetstore > domain > Item


1 package com.ibatis.jpetstore.domain;
2
3 import java.io.Serializable JavaDoc;
4 import java.math.BigDecimal JavaDoc;
5
6
7 public class Item implements Serializable JavaDoc {
8
9   /* Private Fields */
10
11   private String JavaDoc itemId;
12   private String JavaDoc productId;
13   private BigDecimal JavaDoc listPrice;
14   private BigDecimal JavaDoc unitCost;
15   private int supplierId;
16   private String JavaDoc status;
17   private String JavaDoc attribute1;
18   private String JavaDoc attribute2;
19   private String JavaDoc attribute3;
20   private String JavaDoc attribute4;
21   private String JavaDoc attribute5;
22   private Product product;
23   private int quantity;
24
25   /* JavaBeans Properties */
26
27   public String JavaDoc getItemId() {
28     return itemId;
29   }
30
31   public void setItemId(String JavaDoc itemId) {
32     this.itemId = itemId.trim();
33   }
34
35   public int getQuantity() {
36     return quantity;
37   }
38
39   public void setQuantity(int quantity) {
40     this.quantity = quantity;
41   }
42
43   public Product getProduct() {
44     return product;
45   }
46
47   public void setProduct(Product product) {
48     this.product = product;
49   }
50
51   public String JavaDoc getProductId() {
52     return productId;
53   }
54
55   public void setProductId(String JavaDoc productId) {
56     this.productId = productId;
57   }
58
59   public int getSupplierId() {
60     return supplierId;
61   }
62
63   public void setSupplierId(int supplierId) {
64     this.supplierId = supplierId;
65   }
66
67   public BigDecimal JavaDoc getListPrice() {
68     return listPrice;
69   }
70
71   public void setListPrice(BigDecimal JavaDoc listPrice) {
72     this.listPrice = listPrice;
73   }
74
75   public BigDecimal JavaDoc getUnitCost() {
76     return unitCost;
77   }
78
79   public void setUnitCost(BigDecimal JavaDoc unitCost) {
80     this.unitCost = unitCost;
81   }
82
83   public String JavaDoc getStatus() {
84     return status;
85   }
86
87   public void setStatus(String JavaDoc status) {
88     this.status = status;
89   }
90
91   public String JavaDoc getAttribute1() {
92     return attribute1;
93   }
94
95   public void setAttribute1(String JavaDoc attribute1) {
96     this.attribute1 = attribute1;
97   }
98
99   public String JavaDoc getAttribute2() {
100     return attribute2;
101   }
102
103   public void setAttribute2(String JavaDoc attribute2) {
104     this.attribute2 = attribute2;
105   }
106
107   public String JavaDoc getAttribute3() {
108     return attribute3;
109   }
110
111   public void setAttribute3(String JavaDoc attribute3) {
112     this.attribute3 = attribute3;
113   }
114
115   public String JavaDoc getAttribute4() {
116     return attribute4;
117   }
118
119   public void setAttribute4(String JavaDoc attribute4) {
120     this.attribute4 = attribute4;
121   }
122
123   public String JavaDoc getAttribute5() {
124     return attribute5;
125   }
126
127   public void setAttribute5(String JavaDoc attribute5) {
128     this.attribute5 = attribute5;
129   }
130
131   /* Public Methods */
132
133   public String JavaDoc toString() {
134     return "(" + getItemId().trim() + "-" + getProductId().trim() + ")";
135   }
136
137 }
138
Popular Tags