example.cmp.map
Class CourseBean

example.cmp.map.CourseBean

public abstract class CourseBean

Implementation class for the Course bean.

Each instance of CourseBean maps to a table entry of "map_courses".

CourseBean is abstract since it's taking advantage of container-managed persistence. Resin-CMP will create the implementation of the abstract methods.

CourseBean also takes advantage of the AbstractEntityBean implementation. AbstractEntityBean is just a stub EntityBean implementation with default methods to make life a little more sane for simple beans.

This CMP bean uses the following schema:

    CREATE TABLE map_courses (
     name VARCHAR(250) NOT NULL,

     PRIMARY KEY(name)
   );
 


Constructor Summary
CourseBean()
           
 
Method Summary
abstract  java.lang.String getName()
          Returns the name of the course.
 

Constructor Detail

CourseBean

public CourseBean()
Method Detail

getName

public abstract java.lang.String getName()
Returns the name of the course. The name is also the primary key as defined in the deployment descriptor.