schedulebean.java~9~

来自「100多M的J2EE培训内容」· JAVA~9~ 代码 · 共 41 行

JAVA~9~
41
字号
package slsbsample;

import javax.ejb.*;
import java.util.*;
public class ScheduleBean implements SessionBean {
  SessionContext sessionContext;
  public void ejbCreate() throws CreateException {
    /**@todo Complete this method*/
  }
  public void ejbRemove() {
    /**@todo Complete this method*/
  }
  public void ejbActivate() {
    /**@todo Complete this method*/
  }
  public void ejbPassivate() {
    /**@todo Complete this method*/
  }
  public void setSessionContext(SessionContext sessionContext) {
    this.sessionContext = sessionContext;
  }
  public java.util.Vector searchByCourseTitle(String title) {
    Vector schedList = new Vector(20);
    System.out.println(" *** In ScheduleEJB -- searchByCourseTitle ");
    try {
      ScheduleDAO scheduleDAO = new ScheduleDAO();
      schedList = (Vector) scheduleDAO.searchByCourseTitle(title);
      System.out.println(" *** In ScheduleEJB- after calling scheduleDAO ");
    }
    catch (ScheduleDAOException se) {
      throw new ScheduleDAOException("SearchByCourseTitle exception  =" +se.getMessage());
    }
    System.out.println("ScheduleEJB -- searchByCourseTitle returning Vector ");
    return schedList;

  }
  public slsbsample.ScheduleVO searchByScheduleID(String id) {
    /**@todo Complete this method*/
    return null;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?