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 OldItemLocalHome extends EJBLocalHome { 13 31 public OldItemLocal 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 , RemoveException ; 34 35 36 44 public OldItemLocal findByPrimaryKey(OldItemPK id) throws FinderException ; 45 46 47 55 public Collection findBySeller(Integer id) throws FinderException ; 56 57 65 public Collection findByCategory(Integer id) throws FinderException ; 66 67 68 77 public Collection findCurrentByCategory(Integer id) throws FinderException ; 78 79 80 87 public Collection findUserCurrentSellings(Integer userId) throws FinderException ; 88 89 90 97 public Collection findUserPastSellings(Integer userId) throws FinderException ; 98 99 104 public Collection findAllOldItems() throws FinderException ; 105 } 106 | Popular Tags |