1 package example.cmp.create; 2 3 import javax.ejb.*; 4 import javax.naming.*; 5 6 import javax.sql.DataSource; 7 import java.io.Serializable; 8 import java.util.Enumeration; 9 import com.caucho.ejb.AbstractEntityBean; 10 11 38 public abstract class CourseBean extends AbstractEntityBean { 39 40 49 public String ejbCreate(String courseId, String instructor) 50 throws CreateException 51 { 52 setCourseId(courseId); 53 setInstructor(instructor); 54 55 return null; 57 } 58 59 65 public void 66 ejbPostCreate(String courseId, String instructor) 67 { 68 } 69 70 79 public abstract String getCourseId(); 80 81 87 public abstract void setCourseId( String val ); 88 89 93 public abstract String getInstructor(); 94 95 101 public abstract void setInstructor( String val ); 102 } 103 | Popular Tags |