example.cmp.relations.many2many
Class StudentBean

example.cmp.relations.many2many.StudentBean

public abstract class StudentBean

Implementation class for the Student entity.


Constructor Summary
StudentBean()
           
 
Method Summary
 void addCourse(Course course)
          a little helper enroll students in a course
abstract  java.util.Collection getCourseList()
          returns a Collection of all Courses 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
 

Constructor Detail

StudentBean

public StudentBean()
Method Detail

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 Courses 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