Instruction document mentions that :
"2 byte flag. 00 implies valid record, 0x8000 implies deleted record"<BR>
A>Does that mean I can use this 2 byte to store record number I created in program? and persist the change into *.db file?
B>In the operaion process of the application, could I persist data changes caused from users' create, update, delete operation into *.db file?
Because I find out that code in Denny's DVD project of book "SCJD Exam with J2SE 5" really persists the data.
If I understand it well your question is:
A) can I use the place to store the delete byte to store a record number?
Personally I would not do that. First of all, I think you don't need the record number. Secondly, I think we can be quite sure that Sun didn't think of this when describing the use of that field. However, the assignment does not use the
word "MUST" here, so if your sollution is good, I don't think it will cost you points.
B) I think you are asking here: can I update the delete flag byte here with a record number in case of updating an existing rec? Is that correct?
Then, I think the answer would be: update them all, or don't update them. Again, I don't think you need that, and personally I would not do that, but there is no "must" here...