KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > freeforums > message > MessageHome


1 /*
2  * MessageHome.java
3  *
4  * Defines the home interface for the message bean
5  *
6  * @author: Devraj Mukherjee
7  *
8  * Created: 23rd June 2001
9  *
10  */

11
12  package freeforums.message;
13
14  import java.rmi.RemoteException JavaDoc;
15  import java.util.Collection JavaDoc;
16  import javax.ejb.*;
17
18  public interface MessageHome extends EJBHome {
19
20      public Message create(Integer JavaDoc messageID, String JavaDoc subject, String JavaDoc description, Integer JavaDoc forumID, String JavaDoc userName) throws RemoteException JavaDoc, CreateException;
21
22      public Message findByPrimaryKey(Integer JavaDoc messageID) throws RemoteException JavaDoc, FinderException;
23
24      public Collection JavaDoc findAll() throws RemoteException JavaDoc, FinderException;
25
26  }
Popular Tags