KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > one2one > Teacher


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

11 public interface Teacher extends EJBLocalObject {
12
13   /**
14    * returns the the name of the Teacher (CMP field).
15    */

16   String getName();
17
18   /**
19    * returns the Course associated with the Teacher (CMR field).
20    */

21   Course getCourse();
22
23 // void setCourse(Course course);
24

25 }
26
Popular Tags