📄 bankbusiness.java
字号:
package com.aptech.accp.bank.ejb.session;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import java.math.BigDecimal;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: </p>
*
* @author Michael Luo
* @version 1.0
*/
public interface BankBusiness extends EJBObject {
/**
*
* @param accountNo String
* @param money int
* @return int
* @throws RemoteException e
*/
public int saveMoney(String accountNo, int money) throws
RemoteException;
/**
*
* @param accountNo String
* @param money int
* @return int -1 表示余额不足, 0表示操作不成功, 1表示操作成功
* @throws RemoteException e
*/
public int takeMoney(String accountNo, int money) throws
RemoteException;
/**
*
* @param from String
* @param to String
* @param money int
* @return int -3 表示目标帐户被冻结,-2表示目标帐户不存在 -1 表示转帐帐户余额不足,0表示转帐失败,1表示转帐成功
* @throws RemoteException e
*/
public int transfer(String from, String to, int money) throws
RemoteException;
/**
*
* @param accountNo String
* @return double
* @throws RemoteException e
*/
public BigDecimal searchAccount(String accountNo) throws
RemoteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -