|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
example.cmp.map.GradeBean
Implementation class for the Grade bean.
The Grade has a compound key with two identifying fields: the Student and the Course.
This CMP bean uses the following schema:
CREATE TABLE map_grades (
student VARCHAR(250) NOT NULL REFERENCES map_students(name),
course VARCHAR(250) NOT NULL REFERENCES map_courses(name),
grade VARCHAR(3),
PRIMARY KEY(student, course)
);
Constructor Summary | |
GradeBean()
|
Method Summary | |
GradeKey |
ejbCreate(Student student,
Course course,
java.lang.String grade)
Create a new grade object. |
void |
ejbPostCreate(Student student,
Course course,
java.lang.String grade)
Create a new grade object. |
abstract Course |
getCourse()
Returns the Grade's course. |
abstract java.lang.String |
getGrade()
Returns the grade. |
abstract Student |
getStudent()
Returns the Grade's student. |
abstract void |
setCourse(Course course)
Sets the Grade's course. |
abstract void |
setGrade(java.lang.String grade)
Sets the grade. |
abstract void |
setStudent(Student student)
Sets the Grade's student. |
Constructor Detail |
public GradeBean()
Method Detail |
public abstract Student getStudent()
public abstract void setStudent(Student student)
public abstract Course getCourse()
public abstract void setCourse(Course course)
public abstract java.lang.String getGrade()
public abstract void setGrade(java.lang.String grade)
public GradeKey ejbCreate(Student student, Course course, java.lang.String grade) throws javax.ejb.CreateException
public void ejbPostCreate(Student student, Course course, java.lang.String grade) throws javax.ejb.CreateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |