1 package org.apache.ojb.compare; 2 3 import java.io.Serializable ; 4 5 public class PerformanceArticle implements Serializable 6 { 7 8 protected Integer articleId; 9 10 protected String articleName; 11 12 13 protected int minimumStock; 14 15 protected int orderedUnits; 16 17 protected double price; 18 19 20 protected int productGroupId; 21 22 protected int stock; 23 24 protected int supplierId; 25 26 protected String unit; 27 28 29 public void addToStock(int diff) 30 { 31 stock += diff; 32 } 33 34 38 public Integer getArticleId() 39 { 40 return articleId; 41 } 42 43 47 public String getArticleName() 48 { 49 return articleName; 50 } 51 52 53 54 public double getStockValue() 55 { 56 return price * stock; 57 } 58 59 63 public void setArticleId(Integer newArticleId) 64 { 65 articleId = newArticleId; 66 } 67 68 72 public void setArticleName(java.lang.String newArticleName) 73 { 74 articleName = newArticleName; 75 } 76 77 81 public PerformanceArticle() 82 { 83 } 84 85 90 public int getMinimumStock() 91 { 92 return minimumStock; 93 } 94 95 100 public int getOrderedUnits() 101 { 102 return orderedUnits; 103 } 104 105 110 public double getPrice() 111 { 112 return price; 113 } 114 115 116 121 public int getProductGroupId() 122 { 123 return productGroupId; 124 } 125 126 131 public int getStock() 132 { 133 return stock; 134 } 135 136 141 public int getSupplierId() 142 { 143 return supplierId; 144 } 145 146 151 public java.lang.String getUnit() 152 { 153 return unit; 154 } 155 156 157 158 163 public void setMinimumStock(int newMinimumStock) 164 { 165 minimumStock = newMinimumStock; 166 } 167 168 173 public void setOrderedUnits(int newOrderedUnits) 174 { 175 orderedUnits = newOrderedUnits; 176 } 177 178 183 public void setPrice(double newPrice) 184 { 185 price = newPrice; 186 } 187 188 189 194 public void setProductGroupId(int newProductGroupId) 195 { 196 productGroupId = newProductGroupId; 197 } 198 199 204 public void setStock(int newStock) 205 { 206 stock = newStock; 207 } 208 209 214 public void setSupplierId(int newSupplierId) 215 { 216 supplierId = newSupplierId; 217 } 218 219 224 public void setUnit(java.lang.String newUnit) 225 { 226 unit = newUnit; 227 } 228 } 229 | Popular Tags |