bank.java
来自「EJB3.0请一定要上载质量高而且本站没有的源码」· Java 代码 · 共 61 行
JAVA
61 行
package examples.entity.intro;
import java.util.List;
/**
* Business interface of the Bank session bean, a facade for the
* Account entity bean.
*/
public interface Bank {
/**
* List accounts in the bank
* @return the list of accounts
*/
List<Account> listAccounts();
/**
* Opens a new account
* @param ownerName
* @return the account object
*/
Account openAccount(String ownerName);
Account openAccount(String ownerName, int accNum);
void printBigAccounts();
/**
* Find out the balance of account with given accountNumber
* @param accountNumber
* @return the current balance
*/
int getBalance(int accountNumber);
/**
* Increases the balance of account with given accountNumber by amount
* @param accountNumber
* @param amount the amount
*/
void deposit(int accountNumber, int amount);
/**
* Withdraws a given amount, the current balance permitting
* @param accountNumber
* @param amount
* @return amount, if successful, 0 otherwise
*/
int withdraw(int accountNumber, int amount);
public void checkBalance(int accountNumber);
/**
* Destroys the entity permanently
* @param accountNumber
*/
void close(int accountNumber);
void update(Account a);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?