KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.transaction;
2
3 import java.rmi.*;
4 import java.util.*;
5 import javax.ejb.*;
6 import java.security.Principal;
7
8 /**
9  * Local interface for the Student bean.
10  */

11 public interface Student extends EJBLocalObject, java.security.Principal {
12
13   /**
14    * Returns the student's ID (CMP field). This is also the primary key.
15    */

16   int getId();
17
18   /**
19    * Returns the student's name (CMP field).
20    */

21   String getName();
22
23   /**
24    * Returns the password associated with this student.
25    */

26   public String getPassword();
27
28   /**
29    * Returns the gender of the student (CMP field).
30    */

31   public String getGender();
32   /**
33    * Sets the gender of the student (CMP field).
34    */

35   public void setGender(String gender);
36   /**
37    * Returns a <code>Collection</code> of all Courses that the student is
38    * currently enrolled in (CMR field).
39    */

40   public Collection getCourseList();
41
42 }
43
Popular Tags