sb_customermanagerbean.java~8~
来自「用j2ee开发的一个旅店管理系统」· JAVA~8~ 代码 · 共 65 行
JAVA~8~
65 行
package com.xc.hotelmanager.hotel.control.session;import javax.ejb.*;import java.util.*;import java.lang.NullPointerException;import com.xc.hotelmanager.hotel.model.*;import com.xc.hotelmanager.hotel.exception.*;import com.xc.hotelmanager.hotel.control.EjbGetter;import java.sql.*;import com.xc.hotelmanager.hotel.control.entity.*;public class SB_CustomerManagerBean 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 Customer loadCustomer(String cid) { /**@todo Complete this method*/ return null; } public Customer exitCustomer(String cid) { /**@todo Complete this method*/ return null; } public void removeCustomer(String cid) { /**@todo Complete this method*/ } public Customer saveCustomer(Customer cus) { /**@todo Complete this method*/ return null; } public Customer addCustomer(Customer cus)throws hotelmanagerException { try { TbCustomer ejbCustomer = EjbGetter.getTbCustomerHome().create(cus. getCid()); ejbCustomer.setCustomer(cus); // ejbCustomer.setInDate(new Timestamp(System.currentTimeMillis())); return cus; } catch (Exception ex) { throw new hotelmanagerException("SB_CusMangerbean.addCustomer Eorr:" + ex.getMessage()); } } public Collection getAllCustomer() { /**@todo Complete this method*/ return null; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?