KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > map > CourseBean


1 package example.cmp.map;
2
3 /**
4  * Implementation class for the Course bean.
5  *
6  * <p>Each instance of CourseBean maps to a table entry of "map_courses".
7  *
8  * <p>CourseBean is abstract since it's taking advantage of container-managed
9  * persistence. Resin-CMP will create the implementation of the abstract
10  * methods.
11  *
12  * <p>CourseBean also takes advantage of the AbstractEntityBean
13  * implementation. AbstractEntityBean is just a stub
14  * EntityBean implementation with default methods to make life
15  * a little more sane for simple beans.
16  *
17  * <p>This CMP bean uses the following schema:
18  *
19  * <code><pre>
20  * CREATE TABLE map_courses (
21  * name VARCHAR(250) NOT NULL,
22  *
23  * PRIMARY KEY(name)
24  * );
25  * </pre></code>
26  */

27 abstract public class CourseBean extends com.caucho.ejb.AbstractEntityBean {
28   /**
29    * Returns the name of the course. The name is also the primary
30    * key as defined in the deployment descriptor.
31    */

32   abstract public String getName();
33 }
34
Popular Tags