StudentBean.java~2~
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package com.cwj.entitybeandempcmp;
- import javax.ejb.*;
- abstract public class StudentBean implements EntityBean {
- EntityContext entityContext;
- public java.lang.String ejbCreate(java.lang.String studentID) throws CreateException {
- setStudentID(studentID);
- return null;
- }
- public java.lang.String ejbCreate() throws CreateException {
- /**@todo Complete this method*/
- return null;
- }
- public void ejbPostCreate(java.lang.String studentID) throws CreateException {
- /**@todo Complete this method*/
- }
- public void ejbPostCreate() throws CreateException {
- /**@todo Complete this method*/
- }
- public void ejbRemove() throws RemoveException {
- /**@todo Complete this method*/
- }
- public abstract void setStudentID(java.lang.String studentID);
- public abstract void setFirstname(java.lang.String firstname);
- public abstract void setLastname(java.lang.String lastname);
- public abstract java.lang.String getStudentID();
- public abstract java.lang.String getFirstname();
- public abstract java.lang.String getLastname();
- public void ejbLoad() {
- /**@todo Complete this method*/
- }
- public void ejbStore() {
- /**@todo Complete this method*/
- }
- public void ejbActivate() {
- /**@todo Complete this method*/
- }
- public void ejbPassivate() {
- /**@todo Complete this method*/
- }
- public void unsetEntityContext() {
- this.entityContext = null;
- }
- public void setEntityContext(EntityContext entityContext) {
- this.entityContext = entityContext;
- }
- }