Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: deleteRecord

 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic