example.cmp.find
Class TeacherBean

example.cmp.find.TeacherBean

public abstract class TeacherBean

Implementation of the TeacherBean. Each instance of TeacherBean maps to a table entry of "teacher", where teacher is defined as

 CREATE TABLE teacher_house (
   name VARCHAR(250),
   house VARCHAR(250)
 )
 

TeacherBean is abstract since it's taking advantage of container-managed persistence. Resin-EJB will create the implementation of the abstract methods.

TeacherBean 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
TeacherBean()
           
 
Method Summary
abstract  java.lang.String getHouse()
          Returns the house the teacher runs.
abstract  java.lang.String getName()
          Returns the teacher name.
 

Constructor Detail

TeacherBean

public TeacherBean()
Method Detail

getName

public abstract java.lang.String getName()
Returns the teacher name. The name is the primary key.

getHouse

public abstract java.lang.String getHouse()
Returns the house the teacher runs.