1 package example.cmp.xdoclet; 2 3 import java.util.*; 4 5 38 abstract public class CourseBean extends com.caucho.ejb.AbstractEntityBean 39 { 40 49 abstract public String getName(); 50 51 57 abstract public String getInstructor(); 58 59 67 abstract public Collection getStudentList(); 68 69 74 public void addStudent( Student student ) 75 { 76 getStudentList().add( student ); 77 } 78 79 84 public void removeStudent( Student student ) 85 { 86 getStudentList().remove( student ); 87 } 88 89 92 abstract public Collection ejbSelectAllInstructors() 93 throws javax.ejb.FinderException; 94 95 100 public Collection ejbHomeListAllInstructors() 101 throws javax.ejb.FinderException 102 { 103 return ejbSelectAllInstructors(); 104 } 105 } 106 | Popular Tags |