From Bodgitt and Scarper: "...Any methods that throw RecordNotFoundException should do so if a specified record does not exist or is marked as deleted in the database file.... " And no word more about deleting or adding records. Should I allow to user add/delete records?
So if you find that the record is deleted or doesn't exist at all, you throw the exception. 3. you implement the add/delete methods in Data class. 4. you may never use these methods unless you decide to provide the functions beyond the instruction of suncertify
Joined: Sep 18, 2003
Thank you very much,Damu Liu! I understand . Can you help me with one question: How to hide public methods of Data.class(lock(),unlock()) from client? I want to keep encapsulation and allow access to these methods only from another methods(bookRecord() for example). I feel - answer is simple, but have no idea. Extend Data.class by another class and call super.lock()? [ October 26, 2003: Message edited by: Peter Kovgan ]