One more question on Create and delete method.
For my create method..
- I am
not looping through my current records to find delete records, to insert this new record. I just create a new record.
- I also assume that data [input] array for createRecord and updateRecord method does not contain delete flag..when I create record, i add delete flag = 00.and for update method, i just leave delete field alone.
specs says..
// 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;
it says "possibly reusing "..am I gona loose points if i do not reuse the delete field. I did not reuse the delete record b/c what if in the future
they want reuse that record..??
Now delete specs says reuse..I do not see
"possibly reusing ".. // 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;
Thank you..