|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Local interface for Course entity
Method Summary | |
void |
addStudent(Student student)
Adds a Student to the Course. |
java.lang.String |
getInstructor()
Returns the name of the instructor teaching the Course
(CMP field). |
java.lang.String |
getName()
Returns the name of the Course (CMP field). |
java.util.Collection |
getStudentList()
Returns a Collection of all students enrolled in the
Course (CMR field). |
void |
removeStudent(Student student)
Removes a Student from the Course. |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Method Detail |
public java.lang.String getName()
Course
(CMP field).
This is also the primary key
as defined in the deployment descriptor.public java.lang.String getInstructor()
Course
(CMP field).
public java.util.Collection getStudentList()
Collection
of all students enrolled in the
Course (CMR field).
public void addStudent(Student student)
Student
to the Course. This will update
the table many2many_student_course_mapping as defined in the
deployment descriptor.
public void removeStudent(Student student)
Student
from the Course. This will
update the table many2many_student_course_mapping as defined in the
deployment descriptor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |