1 package edu.rice.rubis.beans; 2 3 import javax.ejb.*; 4 import java.rmi.*; 5 6 11 public interface Item extends EJBObject { 12 19 public Integer getId() throws RemoteException; 20 21 28 public String getName() throws RemoteException; 29 30 37 public String getDescription() throws RemoteException; 38 39 46 public float getInitialPrice() throws RemoteException; 47 48 55 public int getQuantity() throws RemoteException; 56 57 64 public float getReservePrice() throws RemoteException; 65 66 73 public float getBuyNow() throws RemoteException; 74 75 82 public float getMaxBid() throws RemoteException; 83 84 91 public int getNbOfBids() throws RemoteException; 92 93 100 public String getStartDate() throws RemoteException; 101 102 109 public String getEndDate() throws RemoteException; 110 111 118 public Integer getSellerId() throws RemoteException; 119 120 127 public Integer getCategoryId() throws RemoteException; 128 129 137 public String getSellerNickname() throws RemoteException; 138 139 146 public String getCategoryName() throws RemoteException; 147 148 149 156 public void setName(String newName) throws RemoteException; 157 158 165 public void setDescription(String newDescription) throws RemoteException; 166 167 174 public void setInitialPrice(float newInitialPrice) throws RemoteException; 175 176 183 public void setQuantity(int qty) throws RemoteException; 184 185 192 public void setReservePrice(float newReservePrice) throws RemoteException; 193 194 201 public void setBuyNow(float newBuyNow) throws RemoteException; 202 203 210 public void setMaxBid(float newMaxBid) throws RemoteException; 211 212 219 public void setNbOfBids(int newNbOfBids) throws RemoteException; 220 221 227 public void addOneBid() throws RemoteException; 228 229 236 public void setStartDate(String newDate) throws RemoteException; 237 238 245 public void setEndDate(String newDate) throws RemoteException; 246 247 255 public void setSellerId(Integer id) throws RemoteException; 256 257 265 public void setCategoryId(Integer id) throws RemoteException; 266 267 274 public String printItem() throws RemoteException; 275 276 283 public String printUserBoughtItem(int qty) throws RemoteException; 284 285 292 public String printItemUserHasBidOn(float bidMaxBid) throws RemoteException; 293 294 301 public String printSell() throws RemoteException; 302 303 310 public String printUserWonItem() throws RemoteException; 311 312 319 public String printItemDescriptionToBuyNow(int userId) throws RemoteException; 320 } 321 | Popular Tags |