|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple banking Database interface.
Method Summary | |
float |
query(int accountNumber)
Queries the database to return the balance of an account given its number. |
void |
update(int accountNumber,
float amount)
Updates the database to set the new amount of an account balance given its number. |
Method Detail |
public float query(int accountNumber) throws InconsistentDatabaseException
InconsistentDatabaseException
- if a problem occurs
when querying the database.public void update(int accountNumber, float amount) throws InconsistentDatabaseException
amount
- The balance to be set
InconsistentDatabaseException
- if a problem occurs
when querying the database.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |