net.sf.jso.examples.banking
Class Account

java.lang.Object
  extended bynet.sf.jso.examples.banking.Account
All Implemented Interfaces:
Storable
Direct Known Subclasses:
SpecialAccount

public class Account
extends java.lang.Object
implements Storable

Bank account


Constructor Summary
Account()
           
Account(int aNumber, Client aClient)
           
 
Method Summary
 int deposit(int amount)
           
 int getBalance()
           
 Client getClient()
           
 int getNumber()
           
 java.util.List history()
           
protected  void validateBalance(int amount)
           
 int withdraw(int amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Account

public Account()

Account

public Account(int aNumber,
               Client aClient)
Method Detail

getClient

public Client getClient()

getNumber

public int getNumber()

getBalance

public int getBalance()

deposit

public int deposit(int amount)

validateBalance

protected void validateBalance(int amount)

withdraw

public int withdraw(int amount)

history

public java.util.List history()