| java.lang.Object com.mockrunner.example.jdbc.Bank
Bank | public class Bank (Code) | | This example class simulates a bank. It can be used to
transfer an amount of money from one account to another.
It uses a table with the name account. The first column
is the account id, the second stores the current balance.
The SQL to create the table is
create table account(id int not null primary key,balance int not null) .
|
transfer | public void transfer(int sourceId, int targetId, int amount) throws SQLException(Code) | | |
|
|