jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: deleteRecord" Watch "B&S: deleteRecord" New topic

B&S: deleteRecord

Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 443

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 ...

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.

[ November 24, 2007: Message edited by: Alex Belisle Turcot ]
I agree. Here's the link: http://aspose.com/file-tools
subject: B&S: deleteRecord
It's not a secret anymore!