KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.create;
2
3 import javax.ejb.*;
4
5 /**
6  * Local interface for the Course bean.
7  *
8  * The Remote Interface represents one entity; in this case a course.
9  *
10  * <p>The idea is that you use the Home Interface to obtain references
11  * to whatever entities you're interested in. Each entity that you
12  * get from the Home Interface (using its create or finder methods)
13  * is then represented by its Remote Interface.
14  *
15  */

16 public interface Course extends EJBLocalObject {
17
18   /**
19    * returns the ID of the course. This is also the primary key as defined
20    * in ejb-jar.xml.
21    */

22   public String getCourseId();
23
24   /**
25    * returns the name of the instructor who is teaching this course.
26    */

27   public String getInstructor();
28 }
29
Popular Tags