1 27 33 package olstore.entity; 34 35 import javax.ejb.EntityBean; 36 37 import olstore.entity.ItemLocal; 38 import olstore.entity.UserLocal; 39 40 import java.math.BigDecimal; 41 42 90 91 public abstract class OrderBean implements EntityBean { 92 93 98 public java.lang.Integer ejbCreate(UserLocal user, ItemLocal item, Integer quantity, String status, String dateReceived, BigDecimal pricePaid) throws javax.ejb.CreateException { 99 setQuantity (quantity); 100 setStatus (status); 101 setDateReceived (dateReceived); 102 setPricePaid (pricePaid); 103 104 return null; 105 } 106 107 111 public void ejbPostCreate(UserLocal user, ItemLocal item, Integer quantity, String status, String dateReceived, BigDecimal pricePaid) throws javax.ejb.CreateException { 112 setUser (user); 113 setItem(item); 114 } 115 116 128 public abstract java.lang.Integer getOrderId(); 129 130 137 public abstract void setOrderId(java.lang.Integer orderId); 138 139 151 public abstract java.lang.Integer getQuantity(); 152 153 160 public abstract void setQuantity(java.lang.Integer quantity); 161 162 174 public abstract java.lang.String getStatus(); 175 176 183 public abstract void setStatus(java.lang.String status); 184 185 197 public abstract java.lang.String getDateReceived(); 198 199 206 public abstract void setDateReceived(java.lang.String dateReceived); 207 208 220 public abstract BigDecimal getPricePaid(); 221 222 229 public abstract void setPricePaid(BigDecimal pricePaid); 230 231 243 244 public abstract UserLocal getUser(); 245 public abstract void setUser (UserLocal user); 246 247 260 261 public abstract ItemLocal getItem(); 262 public abstract void setItem (ItemLocal user); 263 264 } 265 | Popular Tags |