1 package edu.rice.rubis.beans; 2 3 import java.rmi.RemoteException ; 4 import java.util.Collection ; 5 import javax.ejb.CreateException ; 6 import javax.ejb.EJBHome ; 7 import javax.ejb.FinderException ; 8 import javax.ejb.RemoveException ; 9 10 11 12 public interface ItemHome extends EJBHome { 13 30 public Item create(String itemName, String itemDescription, float itemInitialPrice, 31 int itemQuantity, float itemReservePrice, float itemBuyNow, int duration, 32 Integer itemSellerId, Integer itemCategoryId) throws CreateException , RemoteException , RemoveException ; 33 34 35 43 public Item findByPrimaryKey(ItemPK id) throws FinderException , RemoteException ; 44 45 46 54 public Collection findBySeller(Integer id) throws RemoteException , FinderException ; 55 56 64 public Collection findByCategory(Integer id) throws RemoteException , FinderException ; 65 66 67 76 public Collection findCurrentByCategory(Integer id) throws RemoteException , FinderException ; 77 78 79 87 public Collection findUserCurrentSellings(Integer userId) throws RemoteException , FinderException ; 88 89 90 98 public Collection findUserPastSellings(Integer userId) throws RemoteException , FinderException ; 99 100 105 public Collection findAllItems() throws RemoteException , FinderException ; 106 } 107 | Popular Tags |