|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Local Interface for the RegistrationSession bean.
Method Summary | |
void |
addCourse(Course course)
Adds a Course to the list of selected courses. |
void |
finalizeRegistration()
Consitutes a transaction that tries to commit every course in the RegistrationSessionBean 's list of selected courses to the
database. |
java.util.Collection |
getAvailableCourses()
Returns a Collection of all available Courses. |
java.util.Collection |
getEnrolledCourses()
Returns a Collection of all Courses that the Student
currently enrolled in. |
java.util.Collection |
getSelectedCourses()
Returns a Collection of all Courses that are currently
selected in this RegistrationSession Bean. |
java.lang.String |
getStudentName()
Returns the name of the Student who is currently selecting Courses. |
boolean |
isComplete()
Returns true if the registration is complete. |
void |
removeCourse(Course course)
Removes a Course from the list of selected courses. |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Method Detail |
public void addCourse(Course course) throws javax.ejb.FinderException
Course
to the list of selected courses. Note that this
method does store the Course
to the database.public void removeCourse(Course course) throws javax.ejb.FinderException
Course
from the list of selected courses. Note that
this method does not delete any records from the database.public java.util.Collection getAvailableCourses()
Collection
of all available Courses.public java.util.Collection getSelectedCourses()
Collection
of all Courses that are currently
selected in this RegistrationSession Bean.public java.util.Collection getEnrolledCourses()
Collection
of all Courses that the Student
currently enrolled in.public java.lang.String getStudentName()
public boolean isComplete()
public void finalizeRegistration() throws RegistrationDeniedException
RegistrationSessionBean
's list of selected courses to the
database.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |