|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
example.cmp.ejbql.StudentBean
Implementation class for the Student bean.
Each instance of StudentBean maps to a table entry of "one2many_students", where student is defined.
StudentBean is abstract since it's taking advantage of container-managed persistence. Resin-CMP will create the implementation of the abstract methods. StudentBean also takes advantage of the AbstractEntityBean implementation. AbstractEntityBean is just a stub EntityBean implementation with default methods to make life a little more sane for simple beans.
Constructor Summary | |
StudentBean()
|
Method Summary | |
abstract java.util.Collection |
getCourseList()
Returns a Collection of all Courses that the student is
currently enrolled in (CMR field). |
abstract java.lang.String |
getGender()
Returns the gender of the student (CMP field). |
abstract House |
getHouse()
returns the House that this Student belongs to (CMR field). |
abstract java.lang.String |
getName()
Returns the name of the student (CMP field). |
abstract void |
setGender(java.lang.String gender)
Sets the gender of the student (CMP field). |
abstract void |
setHouse(House house)
sets the House that this Student is to belong to (CMR field). |
Constructor Detail |
public StudentBean()
Method Detail |
public abstract java.lang.String getName()
public abstract java.lang.String getGender()
public abstract void setGender(java.lang.String gender)
public abstract java.util.Collection getCourseList()
Collection
of all Courses that the student is
currently enrolled in (CMR field).public abstract House getHouse()
House
that this Student belongs to (CMR field).public abstract void setHouse(House house)
House
that this Student is to belong to (CMR field).house
- new House that this Student will belong to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |