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.EJBLocalHome ; 7 import javax.ejb.FinderException ; 8 import javax.ejb.RemoveException ; 9 10 11 12 public interface ItemLocalHome extends EJBLocalHome { 13 30 public ItemLocal create(String itemName, String itemDescription, float itemInitialPrice, 31 int itemQuantity, float itemReservePrice, float itemBuyNow, int duration, 32 Integer itemSellerId, Integer itemCategoryId) throws CreateException , RemoveException ; 33 34 35 43 public ItemLocal findByPrimaryKey(ItemPK id) throws FinderException ; 44 45 46 54 public Collection findBySeller(Integer id) throws FinderException ; 55 56 64 public Collection findByCategory(Integer id) throws FinderException ; 65 66 67 76 public Collection findCurrentByCategory(Integer id) throws FinderException ; 77 78 79 86 public Collection findUserCurrentSellings(Integer userId) throws FinderException ; 87 88 89 96 public Collection findUserPastSellings(Integer userId) throws FinderException ; 97 98 103 public Collection findAllItems() throws FinderException ; 104 } 105 | Popular Tags |