example.cmp.one2one
Class TeacherBean
example.cmp.one2one.TeacherBean
- public abstract class TeacherBean
Implementation class for the Teacher bean.
This CMP bean uses the following schema:
CREATE TABLE one2one_course(
name VARCHAR(250) NOT NULL,
room VARCHAR(250) NOT NULL,
teacher VARCHAR(250) NOT NULL,
PRIMARY KEY(name)
);
Method Summary |
abstract Course |
getCourse()
returns the Course taught by the Teacher |
abstract java.lang.String |
getName()
returns the Teacher 's name |
TeacherBean
public TeacherBean()
getName
public abstract java.lang.String getName()
- returns the
Teacher
's name
getCourse
public abstract Course getCourse()
- returns the
Course
taught by the Teacher