example.cmp.relations.many2many
Interface Student
- All Superinterfaces:
- javax.ejb.EJBLocalObject
- public interface Student
- extends javax.ejb.EJBLocalObject
Remote interface for a student instance.
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
getName
public java.lang.String getName()
- Returns the student's name.
getCourseList
public java.util.Collection getCourseList()
- Returns the student's house
addCourse
public void addCourse(Course course)
- Enrolls the
Student
in a Course
.
removeCourse
public void removeCourse(Course course)
- Drops the
Student
from a Course
.