previous
|
start
|
next
Case Study: A Bank Database
The
Bank
class needs to connect to the database whenever it is asked to find a customer
Its
findCustomer
method
Connects to the database
Selects the customer with the given account number
SELECT * FROM BankCustomer WHERE Customer_Number = . . .
Verifies the PIN
Creates an customer object from the database information
previous
|
start
|
next