posted 20 years ago
I roughly have my DB and Remote packages design done.
DB Package
==========
MetaData -- A class which contains extra information about the data file.
DataConfig -- A class which is used to specify the type of data file. An object of DataConfig is passed from Client to DBPersist.
DBPersist -- An interface which has a set of methods for record persistent.
FlatFileData -- A class implementing DBPersist, so this is the class which talk to the data file.
DBAccess -- This interface is given.
Data -- A class implementing DBAccess, it has a DBPersist reference as instance variable. Hence this class uses FlatFileData as persistent manager, and it basically only handle the locking system.
DBAdaper -- An interface that extends DBAccess, add more functionalities to DBAccess.
DataAdapter -- A class implementing DBAdapter and it extends from Data.
Remote Package
==============
RemoteDBAdapter -- An interface that extends Remote and DBAdapter.
RemoteDataAdapter -- A class that implements RemoteDBAdapter and extends UnicastRemoteObject.
Connector -- A class that creates a local or remote connection.
Any comments or suggestions ??
Thank you.