Howdy, Martin.
Well, whether is your approach of how to keep the deleted/valid records, I think we should stick to the requirements and use deleted positions. But, quick question, when do you plan to use these methods? For instance, I'm currently working on the URLyBird 1.3.1, and, here are some pieces of my requirements:
Under Application Overview
The new application, using the existing data file format, must allow the CSRs to generate a list of accomodations that match a customer's criteria.
Under User Interface:
- It must be composed exclusively with components from the
Java Foundation Classes (Swing components).
- It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
- It must present search results in a JTable.
- It must allow the user to book a selected record, updating the database file accordingly.
So I created all methods that the DB interface requests (and I'm looping through all records to find their positions), but I'll never use the create() method or the delete() method, because it is not asked anywhere on my requirements to create or delete records. I'll only use the update() method (to book a record) and the find() method (to allow users to perform full/and/or searches). I still don't know if I'll have to use the methods that relate to locking of records, I'll have to think about how I'll do the locking... so, I don't know about your requirements, but I guess you don't really have to spend too much time on the create()/delete() methods.
Have a good evening, partner!