1 package edu.rice.rubis.beans; 2 3 import javax.ejb.*; 4 import java.rmi.*; 5 6 11 public interface ItemLocal extends EJBLocalObject { 12 18 public Integer getId(); 19 20 26 public String getName(); 27 28 34 public String getDescription(); 35 36 42 public float getInitialPrice(); 43 44 50 public int getQuantity(); 51 52 58 public float getReservePrice(); 59 60 66 public float getBuyNow(); 67 68 74 public float getMaxBid(); 75 76 82 public int getNbOfBids(); 83 84 90 public String getStartDate(); 91 92 98 public String getEndDate(); 99 100 106 public Integer getSellerId(); 107 108 114 public Integer getCategoryId(); 115 116 123 public String getSellerNickname(); 124 125 131 public String getCategoryName(); 132 133 134 140 public void setName(String newName); 141 142 148 public void setDescription(String newDescription); 149 150 156 public void setInitialPrice(float newInitialPrice); 157 158 164 public void setQuantity(int qty); 165 166 172 public void setReservePrice(float newReservePrice); 173 174 180 public void setBuyNow(float newBuyNow); 181 182 188 public void setMaxBid(float newMaxBid); 189 190 196 public void setNbOfBids(int newNbOfBids); 197 198 203 public void addOneBid(); 204 205 211 public void setStartDate(String newDate); 212 213 219 public void setEndDate(String newDate); 220 221 228 public void setSellerId(Integer id); 229 230 237 public void setCategoryId(Integer id); 238 239 245 public String printItem(); 246 247 253 public String printUserBoughtItem(int qty); 254 255 261 public String printItemUserHasBidOn(float bidMaxBid); 262 263 269 public String printSell(); 270 271 277 public String printUserWonItem(); 278 279 285 public String printItemDescriptionToBuyNow(int userId); 286 } 287 | Popular Tags |