KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public interface Student extends EJBLocalObject {
11
12   /**
13    * Returns the student's name (CMP field).
14    */

15   String getName();
16
17   /**
18    * Returns the gender of the student (CMP field).
19    */

20   public String getGender();
21   
22   /**
23    * Sets the gender of the student (CMP field).
24    */

25   public void setGender(String gender);
26
27   /**
28    * Returns a <code>Collection</code> of all Courses that the student is
29    * currently enrolled in (CMR field).
30    */

31   public Collection getCourseList();
32
33   /**
34    * returns the <code>House</code> that this Student belongs to (CMR field).
35    */

36   public House getHouse();
37
38   /**
39    * sets the <code>House</code> that this Student is to belong to (CMR field).
40    *
41    * @param house new House that this Student will belong to.
42    */

43   public void setHouse(House house);
44
45 }
46
Popular Tags