Thank you,Bill
Considering the Data class implementation (extends from DBAccess interface),there are some doubtful points,
// Modifies the fields of a record. The new value for field n
// appears in data[n]. Throws SecurityException
// if the record is locked with a cookie other than lockCookie.
public void updateRecord(long recNo, String[] data, long lockCookie)
throws RecordNotFoundException, SecurityException;
// Deletes a record, making the record number and associated disk
// storage available for reuse.
// Throws SecurityException if the record is locked with a cookie
// other than lockCookie.
public void deleteRecord(long recNo, long lockCookie)
throws RecordNotFoundException, SecurityException;
// Creates a new record in the database (possibly reusing a
// deleted entry). Inserts the given data, and returns the record
// number of the new record.
public long createRecord(String [] data)
throws DuplicateKeyException;
In the DBAccess interface,I have the following estimations,
1) The createRecord() and deleteRecord() method is used to changing the database ,so they are not relational with booking a room?
They don't have to exist in a remote interface ( such as 'interface
RemoteDBAccess').
2) In the update() method,what should I do to modify the value of field n to update the record?
3) "Deletes a record, making the record number and associated disk
storage available for reuse. "
According deleteRecord() method, how can I delete a record and make the disk space avaliable for reuse?
4) During the course of create/delete/update/find record data,is that necessary to wrap the records into a Collection (like List or Set) for easy operation?
Regards, Richard