example.cmp.many2many
Interface Student
- All Superinterfaces:
- javax.ejb.EJBLocalObject
- public interface Student
- extends javax.ejb.EJBLocalObject
Local interface for the Student bean.
Method Summary |
void |
addCourse(Course course)
Enrolls the Student in a Course . |
java.util.Collection |
getCourseList()
Returns a Collection of the student's courses (CMR field) |
java.lang.String |
getName()
Returns the student's name (CMP field). |
void |
removeCourse(Course course)
Drops a Course for the Student . |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
getName
public java.lang.String getName()
- Returns the student's name (CMP field).
getCourseList
public java.util.Collection getCourseList()
- Returns a
Collection
of the student's courses (CMR field)
addCourse
public void addCourse(Course course)
- Enrolls the
Student
in a Course
.
- Parameters:
course
- Course the student is to enroll in.
removeCourse
public void removeCourse(Course course)
- Drops a
Course
for the Student
.
- Parameters:
course
- Course the student is to drop