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 CommentHome extends EJBHome { 13 25 public Comment create(Integer FromUserId, Integer ToUserId, Integer ItemId, int Rating, String Comment) throws CreateException , RemoteException , RemoveException ; 26 27 35 public Comment findByPrimaryKey(CommentPK id) throws FinderException , RemoteException ; 36 37 45 public Collection findByItem(Integer id) throws FinderException , RemoteException ; 46 47 55 public Collection findByFromUser(Integer id) throws FinderException , RemoteException ; 56 57 65 public Collection findByToUser(Integer id) throws FinderException , RemoteException ; 66 67 72 public Collection findAllComments() throws RemoteException , FinderException ; 73 } 74 | Popular Tags |