KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.select;
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   public Student findByPrimaryKey(String name)
18     throws FinderException;
19
20   /**
21    * Returns a <code>Collection</code> of all Students enrolled.
22    */

23   public Collection findAll()
24     throws FinderException;
25 }
26
Popular Tags