KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.one2many;
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 student's house (CMR field).
19    */

20   House getHouse();
21
22   /**
23    * Sets the student's house (CMR field).
24    *
25    * @param <code>House</code> that will be the student's new House
26    */

27   void setHouse(House house);
28 }
29
Popular Tags