banking
Interface Database

All Known Implementing Classes:
DatabaseImpl

public interface Database

A simple banking Database interface.

Version:
1.0 - 13/01/2004
Author:
Sara Bouchenak

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

query

public float query(int accountNumber)
            throws InconsistentDatabaseException
Queries the database to return the balance of an account given its number.

Returns:
The account number.
Throws:
InconsistentDatabaseException - if a problem occurs when querying the database.

update

public void update(int accountNumber,
                   float amount)
            throws InconsistentDatabaseException
Updates the database to set the new amount of an account balance given its number.

Parameters:
amount - The balance to be set
Throws:
InconsistentDatabaseException - if a problem occurs when querying the database.


University Grenoble 1 (France) - Department of Computer Science
Master M1 - Adaptable Middleware - AOP / AspectJ.