example.cmp.relations.many2many
Class StudentBean
example.cmp.relations.many2many.StudentBean
- public abstract class StudentBean
Implementation class for the Student entity.
Method Summary |
void |
addCourse(Course course)
a little helper enroll students in a course |
abstract java.util.Collection |
getCourseList()
returns a Collection of all Course s the
Student is currently enrolled in. |
abstract java.lang.String |
getName()
Returns the student name. |
void |
removeCourse(Course course)
a little helper to drop a Course |
StudentBean
public StudentBean()
getName
public abstract java.lang.String getName()
- Returns the student name. The name is the primary key.
getCourseList
public abstract java.util.Collection getCourseList()
- returns a
Collection
of all Course
s the
Student
is currently enrolled in.
addCourse
public void addCourse(Course course)
- a little helper enroll students in a
course
removeCourse
public void removeCourse(Course course)
- a little helper to drop a
Course