KickJava   Java API By Example, From Geeks To Geeks.

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


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 Student bean.
10  */

11 public interface StudentHome extends EJBLocalHome {
12
13   /**
14    * returns the <code>Student</code> entity that has <code>name</code>
15    * as its primary key.
16    *
17    * @param name Primary Key of the student we want to find
18    */

19   Student findByPrimaryKey(String name)
20     throws FinderException;
21
22   /**
23    * finds all courses for a student
24    *
25    * @param name Name of the student for whom we want to find all Courses
26    */

27   public Collection findByCourse(String name)
28     throws FinderException;
29
30 }
31
Popular Tags