example.cmp.ejbql
Class CourseBean

example.cmp.ejbql.CourseBean

public abstract class CourseBean

Implementation class for the Course bean. This is our implementation class. Its methods will be called only by the EJB container, and not ever by any client programs that we write. Instead, we call methods in the Remote Interface which will prompt the container to access methods in this class on our behalf. The container will also call the various housekeeping methods described below when it sees fit.


Constructor Summary
CourseBean()
           
 
Method Summary
abstract  java.lang.String getName()
          CMP accessor and mutator methods are left for Resin-CMP to implement.
abstract  java.util.Collection getStudentList()
          Returns a Collection of all Student who are currently enrolled in this Course (CMR field).
abstract  Teacher getTeacher()
          returns the Teacher who is teaching this Course (CMR field).
abstract  void setName(java.lang.String val)
          CMP accessor and mutator methods are left for Resin-CMP to implement.
 

Constructor Detail

CourseBean

public CourseBean()
Method Detail

getName

public abstract java.lang.String getName()
CMP accessor and mutator methods are left for Resin-CMP to implement. Each cmp-field described in the deployment descriptor needs to be matched in the implementation class by abstract setXXX and getXXX methods. The container will take care of implementing them. Note that unless you make these methods available in the Local Interface, you will never be able to access them from an EJB client such as a servlet.

setName

public abstract void setName(java.lang.String val)
CMP accessor and mutator methods are left for Resin-CMP to implement.

getStudentList

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

getTeacher

public abstract Teacher getTeacher()
returns the Teacher who is teaching this Course (CMR field).