|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
example.cmp.one2many.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.
This CMP bean uses the following schema:
CREATE TABLE one2many_students (
name VARCHAR(250) NOT NULL,
house VARCHAR(250),
PRIMARY KEY(name)
);
Constructor Summary | |
StudentBean()
|
Method Summary | |
abstract House |
getHouse()
Returns the House that the student belongs to (CMR field). |
abstract java.lang.String |
getName()
Returns the name of the student (CMP field). |
abstract void |
setHouse(House house)
Sets the House that the student belongs to (CMR field). |
Constructor Detail |
public StudentBean()
Method Detail |
public abstract java.lang.String getName()
public abstract House getHouse()
House
that the student belongs to (CMR field).
This method needs to exist
because the field house
is defined as a CMR field.
public abstract void setHouse(House house)
House
that the student belongs to (CMR field).
This method needs to exist
because the field house
is defined as a CMR field.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |