useraccountmgrimp.java
来自「《精通SOA:基于服务总线的Struts+EJB+Web Service整合应用」· Java 代码 · 共 51 行
JAVA
51 行
package com.sample.model.service.imp;
import java.rmi.RemoteException;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.naming.NamingException;
import com.sample.ejb.sessionbean.UserAccountMgr;
import com.sample.ejb.sessionbean.UserAccountMgrHome;
import com.sample.ejb.sessionbean.UserAccountMgrUtil;
import com.sample.exception.ApplicationException;
import com.sample.model.service.dto.UserAccountDTO;
import com.sample.model.service.ifc.UserAccountMgrIfc;
public class UserAccountMgrImp implements UserAccountMgrIfc {
public boolean checkUserLogin(String loginName, String password) throws ApplicationException, NamingException, RemoteException, CreateException, FinderException{
UserAccountMgrHome userAccountMgrHome = UserAccountMgrUtil.getHome();
UserAccountMgr userAccountMgr = null;
userAccountMgr = userAccountMgrHome.create();
return userAccountMgr.checkUserLogin(loginName,password);
}
public void saveUserInfo(UserAccountDTO userAccountDTO) throws NamingException, RemoteException, CreateException, FinderException {
System.out.println(" -----------ejb save------");
UserAccountMgrHome userAccountMgrHome = UserAccountMgrUtil.getHome();
UserAccountMgr userAccountMgr = null;
userAccountMgr = userAccountMgrHome.create();
userAccountMgr.saveUserInfo(userAccountDTO);
}
public List getUserList() throws NamingException, RemoteException, CreateException, FinderException {
UserAccountMgrHome userAccountMgrHome = UserAccountMgrUtil.getHome();
UserAccountMgr userAccountMgr = null;
userAccountMgr = userAccountMgrHome.create();
return userAccountMgr.getUserList();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?