|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
example.cmp.id.StudentBean
Implementation class for the Student bean.
Each instance of StudentBean maps to a table entry of "id_students".
Each Student may have an associated Quidditch entry if the Student is on the house team. Since the Quidditch entry is an identifying relation, there is no corresponding entry in the SQL.
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 id_students (
name VARCHAR(250) NOT NULL,
PRIMARY KEY(name)
);
Constructor Summary | |
StudentBean()
|
Method Summary | |
abstract java.lang.String |
getName()
Returns the name of the student. |
abstract Quidditch |
getQuidditch()
Returns the student's Quidditch statistics, if the
student is on the house team. |
Constructor Detail |
public StudentBean()
Method Detail |
public abstract java.lang.String getName()
public abstract Quidditch getQuidditch()
Quidditch
statistics, if the
student is on the house team.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |