KickJava   Java API By Example, From Geeks To Geeks.

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


1 package example.cmp.find;
2
3 import javax.ejb.*;
4
5 /**
6  * Local interface for the Course bean.
7  * The Local Interface represents one entity; in this case a <code>Course
8  * </code>.
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 Local Interface.
14  *
15  */

16 public interface Course extends EJBLocalObject {
17
18   /**
19    * returns the id (and name) of this course (CMP field).
20    * This is also the primary key as defined in the deployment descriptor.
21    */

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

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