Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

update-locking

 
Goran Borozan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
In my GUI i hava a pop-up dialog that allow the user to book room.
My question is: Is it better to try to lock when the pop-up window creates(risk that the user forget the window and tge record is locked) or lock when the user is finished with writing the owner name(risk for overwriting)?



Thanks
/Goran
 
Serkan Yazici
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Goran,

I think it would be better the minimise the amount of time after locking a record. In my project, I didn't display a dialog for booking (handled on the main gui) but if I did; I would do the booking after the dialog but also check for record inconsistency (making sure the record key is not changed).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic