wood burning stoves 2.0*
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: 407

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 ]
It is sorta covered in the JavaRanch Style Guide.
subject: B&S: deleteRecord
Similar Threads
URLyBird: Question about update e delete methods
Data class questions
Deleting record from RecordStore
Need clarification on URLyBird 1.3.1 requirement
How to release lock when RecordNotFoundException Occurs?