example.cmp.one2one
Class CourseBean
example.cmp.one2one.CourseBean
- public abstract class CourseBean
Implementation class for the Course bean.
This CMP bean uses the following schema:
CREATE TABLE one2one_teacher (
name VARCHAR(250) NOT NULL,
course VARCHAR(250) NOT NULL,
PRIMARY KEY(name)
);
Method Summary |
abstract java.lang.String |
getName()
Returns the name of the course (CMP field). |
abstract Teacher |
getTeacher()
Returns the Teacher who is teaching this Course (CMR field). |
CourseBean
public CourseBean()
getName
public abstract java.lang.String getName()
- Returns the name of the course (CMP field). This method will be
implemented by Resin-CMP.
It is also the primary key as defined in the deployment descriptor.
getTeacher
public abstract Teacher getTeacher()
- Returns the Teacher who is teaching this Course (CMR field).
Resin-CMP will implement this method.