1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import java.math.BigDecimal ; 5 import org.apache.commons.lang.builder.ToStringBuilder; 6 import org.apache.tapestry.pets.domain.model.*; 7 8 9 14 public class Item implements Serializable , IItem { 15 16 17 private String itemid; 18 19 20 private BigDecimal listprice; 21 22 23 private BigDecimal unitcost; 24 25 26 private int qty; 27 28 29 private org.apache.tapestry.pets.domain.model.IProduct product; 30 31 32 private johnmammen.betterpetshop.bo.Supplier supplier; 33 34 35 public Item(String itemid, BigDecimal listprice, BigDecimal unitcost, int qty, org.apache.tapestry.pets.domain.model.IProduct product, johnmammen.betterpetshop.bo.Supplier supplier) { 36 this.itemid = itemid; 37 this.listprice = listprice; 38 this.unitcost = unitcost; 39 this.qty = qty; 40 this.product = product; 41 this.supplier = supplier; 42 } 43 44 45 public Item() { 46 } 47 48 49 public Item(String itemid, BigDecimal listprice, BigDecimal unitcost, int qty) { 50 this.itemid = itemid; 51 this.listprice = listprice; 52 this.unitcost = unitcost; 53 this.qty = qty; 54 } 55 56 63 public String getItemid() { 64 return this.itemid; 65 } 66 67 public void setItemid(String itemid) { 68 this.itemid = itemid; 69 } 70 71 78 public BigDecimal getListprice() { 79 return this.listprice; 80 } 81 82 public void setListprice(BigDecimal listprice) { 83 this.listprice = listprice; 84 } 85 86 93 public BigDecimal getUnitcost() { 94 return this.unitcost; 95 } 96 97 public void setUnitcost(BigDecimal unitcost) { 98 this.unitcost = unitcost; 99 } 100 101 108 public int getQty() { 109 return this.qty; 110 } 111 112 public void setQty(int qty) { 113 this.qty = qty; 114 } 115 116 121 public org.apache.tapestry.pets.domain.model.IProduct getProduct() { 122 return this.product; 123 } 124 125 public void setProduct(org.apache.tapestry.pets.domain.model.IProduct product) { 126 this.product = product; 127 } 128 129 134 public johnmammen.betterpetshop.bo.Supplier getSupplier() { 135 return this.supplier; 136 } 137 138 public void setSupplier(johnmammen.betterpetshop.bo.Supplier supplier) { 139 this.supplier = supplier; 140 } 141 142 public String toString() { 143 return new ToStringBuilder(this) 144 .append("itemid", getItemid()) 145 .toString(); 146 } 147 148 } 149 | Popular Tags |