📄 accountaccesslocal.java
字号:
package com.ebusiness.ebank.ejb.sessionbean;/** * <p>Title: </p> * <p>Description: Local interface for accessing account information data. All of the web * components within eBank application can call this local interface. * It has better performance than remote interface does</p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: eBusiness Inc., All right reserved</p> * @author unascribed * @version 1.0 */import javax.ejb.EJBLocalObject;import javax.ejb.EJBException;import com.ebusiness.ebank.bean.AccountValue;import com.ebusiness.ebank.bean.StatementValue;import com.ebusiness.ebank.bean.ValueList;import com.ebusiness.ebank.exception.BusinessException;import com.ebusiness.ebank.exception.SystemException;import com.ebusiness.ebank.criteria.SearchCriteria;public interface AccountAccessLocal extends EJBLocalObject{ /** * @Description: View the Account by it's objectId and account type * @return: The AccountValue bean */ public AccountValue viewAccountByOID(long oid, String accountType) throws EJBException, SystemException, BusinessException; /** * @Description: View the Account by accountNo and account type * @return: The AccountValue bean */ public AccountValue viewAccountByAccountNo(String accountNo, String accountType) throws EJBException, SystemException, BusinessException; /** * @Description: View the Account by it's objectId and account type * @return: The AccountValue bean */ public AccountValue viewAccountByCardID(String cardID, String accountType) throws EJBException, SystemException, BusinessException; /** * @Description: Update the specified AccountValue * @return: The updated AccountValue bean */ public AccountValue updateAccount(AccountValue value) throws EJBException, SystemException, BusinessException; /** * @Description: Insert a new record for account table * @param: AccountValue * @return: AccountValue */ public AccountValue createAccount(AccountValue value) throws EJBException, SystemException, BusinessException; /** * @Description: Search a full list of the accounts the user has * @return: ValueList that contains a full list of accounts the user has */ public ValueList searchAccount(String cardID) throws EJBException, SystemException, BusinessException; /** * @Description: Deposit the specified money to the specified Account * @return: The updated AccountValue bean */ public AccountValue deposit(StatementValue sValue) throws EJBException,SystemException, BusinessException; /** * @Description: Withdrawal the specified money from the specified Account * @return: The updated AccountValue bean */ public AccountValue withdrawal(StatementValue sValue) throws EJBException,SystemException, BusinessException; /** * @Description: Transfer the specified money from fromAccount to toAccount * @return: Fresh ValueList that contains a full list of accounts the user has */ public ValueList transferMoney(AccountValue fromAccount, AccountValue toAccount, double amount) throws EJBException, SystemException, BusinessException; /** * @Description: Use fast lane to search multiple records based on the specified criteria * @return: ValueList that contains a full list of value beans. */ public ValueList search(SearchCriteria criteria) throws EJBException, SystemException, BusinessException; /** * @Description: Delete Account data. Used by Bank Clerk only * @param: AccountValue * @return: */ public void deleteAccount(AccountValue value) throws EJBException, SystemException, BusinessException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -