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