• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with book seats

 
badarinath gururaj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,
Has anybody managed lock/read/modify/unlock sequence in the modify method of the Class that wraps Data and be used only in the remote mode??
Thanks and regards
badari
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12056
232
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Badari,
Yes, there have been people who have done it and passed.
My personal view is that this is not correct from an extensibility viewpoint. Today we need to lock one record, modify it, and unlock it. Tomorrow the requirement may change where we need to lock two records, modify both, and unlock both. If we cant do the modification on one then we cannot do the modificaton on another. If you have the lock done behind the scenes, then when it comes time to extend the project, the locking code has to be removed from the class you put it in, and moved to the class handling two simultaneous modifications.
Regards, Andrew
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!