This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
// 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;
Data section. Repeat to end of file: 1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record
This text is from B&S assgnment can anyone please explain what does delete operation actually does :- 1. sets a (delete)byte to 1 in the file for the record 2. removes it from the file (as in the interface doc it says associated disk storage available for reuse.
hi, I means that the record should be marked as deleted, and in future add operation you can use the same space to enter the new record. Basically, it says that when you add a new record, you should find a deleted record first then overwirte it.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle