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 OldItemHome extends EJBHome { 13 31 public OldItem create(Integer itemId, String itemName, String itemDescription, float itemInitialPrice, 32 int itemQuantity, float itemReservePrice, float itemBuyNow, int duration, 33 Integer itemSellerId, Integer itemCategoryId) throws CreateException , RemoteException , RemoveException ; 34 35 36 44 public OldItem findByPrimaryKey(OldItemPK id) throws FinderException , RemoteException ; 45 46 47 55 public Collection findBySeller(Integer id) throws RemoteException , FinderException ; 56 57 65 public Collection findByCategory(Integer id) throws RemoteException , FinderException ; 66 67 68 77 public Collection findCurrentByCategory(Integer id) throws RemoteException , FinderException ; 78 79 80 88 public Collection findUserCurrentSellings(Integer userId) throws RemoteException , FinderException ; 89 90 91 99 public Collection findUserPastSellings(Integer userId) throws RemoteException , FinderException ; 100 101 106 public Collection findAllOldItems() throws RemoteException , FinderException ; 107 } 108 | Popular Tags |