All Packages Class Hierarchy This Package Previous Next Index
Class bank.manager.BankApplicationManager
java.lang.Object
|
+----bank.manager.DomainManager
|
+----bank.manager.BankApplicationManager
- public class BankApplicationManager
- extends DomainManager
- implements BankApplicationManagerInterface
銀行アプリケーションに関する操作をまとめて持つマネージャクラス
#pattern: Facade
- See Also:
- AccountFinder
-
accFinder
-
-
BankApplicationManager()
-
-
checkBalanceAccount(int)
-
-
createPolicy()
-
-
depositAccount(int, int)
-
-
getDefault()
- BankApplicationManagerはシングルトンとして実装される
#pattern: Singleton
-
searchAccount(int)
-
-
verifyAccount(int)
-
-
withdrawAccount(int, int)
-
accFinder
protected AccountFinder accFinder
BankApplicationManager
public BankApplicationManager()
checkBalanceAccount
public synchronized int checkBalanceAccount(int accountNumber) throws AccountNotFoundException
- Parameters:
- accountNumber - int
- Returns:
- int
createPolicy
protected DbAdaptorCreatePolicy createPolicy()
depositAccount
public synchronized int depositAccount(int accountNumber,
int amount) throws AccountNotFoundException
- Parameters:
- accountNo - int
- amount - int
- Returns:
- int
getDefault
public static BankApplicationManager getDefault()
- BankApplicationManagerはシングルトンとして実装される
#pattern: Singleton
searchAccount
protected Account searchAccount(int accountNum) throws AccountNotFoundException
- Parameters:
- accountNum - int
- Returns:
- Account
verifyAccount
public synchronized boolean verifyAccount(int accountNum)
- Parameters:
- accountNum - int
- Returns:
- Account
withdrawAccount
public synchronized int withdrawAccount(int accountNumber,
int amount) throws AccountNotFoundException
- Parameters:
- accountNumber - int
- amount - int
- Returns:
- int
All Packages Class Hierarchy This Package Previous Next Index