example.cmp.transaction
Class CourseBean

example.cmp.transaction.CourseBean

public abstract class CourseBean

Implementation class for the Course bean.


Constructor Summary
CourseBean()
           
 
Method Summary
abstract  int getId()
          Returns the ID of this course (CMP field).
abstract  int getMaxStudentAmount()
          returns the maximum amount of students allowed to be enrolled in this course (CMP field).
abstract  java.lang.String getName()
          Returns the name of this Course (CMP field).
abstract  java.util.Collection getStudentList()
          Returns a Collection of all Student who are currently enrolled in this Course (CMR field).
 boolean isFull()
          Returns true if the course is full and no more students can enroll in it.
abstract  void setMaxStudentAmount(int amount)
          Sets the maximum amount of students allowed to be enrolled in this course (CMP field).
abstract  void setName(java.lang.String val)
          SSets the name of this Course (CMP field).
 

Constructor Detail

CourseBean

public CourseBean()
Method Detail

getId

public abstract int getId()
Returns the ID of this course (CMP field). This is also the primary key.

getName

public abstract java.lang.String getName()
Returns the name of this Course (CMP field).

setName

public abstract void setName(java.lang.String val)
SSets the name of this Course (CMP field).

setMaxStudentAmount

public abstract void setMaxStudentAmount(int amount)
Sets the maximum amount of students allowed to be enrolled in this course (CMP field).

getMaxStudentAmount

public abstract int getMaxStudentAmount()
returns the maximum amount of students allowed to be enrolled in this course (CMP field).

getStudentList

public abstract java.util.Collection getStudentList()
Returns a Collection of all Student who are currently enrolled in this Course (CMR field).

isFull

public boolean isFull()
Returns true if the course is full and no more students can enroll in it.