aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: deleteRecord Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: deleteRecord" Watch "B&S: deleteRecord" New topic
Author

B&S: deleteRecord

Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 417
    
    2

Presumably deleteRecord must free up any lock i.e. there is no concept of a locked deleted record sounds like a no brainer but if there automatic tool says .. no then explaining your choice in choices.txt won't help ;-)

i.e. no need to ...

lockRecord
deleteRecord
unlockRecord // unecessary ?? / should fail with no such record


"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Or perhaps you can check if the client holds the lock and allow unlocking it.

After all, if the client got the lock in the first place, then it means it was not deleted. So unlocking should be allowed.

Regards,
Alex
[ November 24, 2007: Message edited by: Alex Belisle Turcot ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: B&S: deleteRecord