KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.many2many;
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 primary key of the Course we want to find.
18    */

19   Course findByPrimaryKey(String name)
20     throws FinderException;
21
22   /**
23    * Returns all Courses that a student is enrolled in. Resin-CMP will implement
24    * this method.
25    *
26    * @param name of the Student whose Courses we want to find.
27    */

28   Collection findByStudent(String name)
29     throws FinderException;
30 }
31
Popular Tags