KickJava   Java API By Example, From Geeks To Geeks.

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


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

13 public interface Course extends EJBLocalObject {
14
15   /**
16    * Returns the name of the <code>Course</code> (CMP field).
17    * This is also the primary key as defined in the deployment descriptor.
18    */

19   String getName();
20
21   /**
22    * Returns the Teacher teaching this <code>Course</course> (CMR field).
23    */

24   Teacher getTeacher();
25 }
26
Popular Tags