KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > one2one > CourseHome


1 package example.cmp.one2one;
2
3 import java.rmi.*;
4 import javax.ejb.*;
5
6 import java.util.*;
7
8 /**
9  * Home interface for the Course bean.
10  */

11 public interface CourseHome extends EJBLocalHome {
12
13   /**
14    * returns the <code>Course</code> that has <code>name</code>
15    * as its primary key.
16    *
17    * @param name Name of the course we want to find.
18    */

19   Course findByPrimaryKey(String name)
20     throws FinderException;
21
22   /**
23    * returns all Courses managed by the container (Finder method).
24    *
25    * <code><pre>
26    * SELECT o FROM one2one_course o
27    * </pre></code>
28    */

29   Collection findAll()
30     throws FinderException;
31 }
32
Popular Tags