KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.transaction;
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 id ID of the <code>student</code> to be returned.
18    */

19   public abstract Student findByPrimaryKey(int id)
20     throws FinderException;
21
22   /**
23    * Returns the Student with the given name.
24    *
25    * @param name Name of the <code>Student</code> to be returned.
26    */

27   public abstract Student findByName(String name)
28       throws FinderException;
29
30 }
31
Popular Tags