Hi,Chris Hegarty, this is my solution:
Code:
----------------------------------------------------------------
You can see that in fact almost all the operation is in Data.class.
When you start the application, the ConnectFactory can return a same database interface to you, yet it was created by defferent ways according to the mode.
I also hope to get suggestions about my code from Andrew Monkhouse and Ken Krebs
Thank you
[Andrew: removed major sections of code]
[ September 08, 2003: Message edited by: Andrew Monkhouse ]