• Post Reply Bookmark Topic Watch Topic
  • New Topic

B&S: must i pass ref to fileHandler to lockHandler?

 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all;

i don't pass a ref to fileHandler that contain isRecordExist() method to lockHandler that responsible for logical-record locking so before i invocate lock method in the lockHanler class i check if the record found or not and also after that as following:



i test many time with this idea and found that every things is ok and fine
but it is safe way for all delete and update unlock methods. ???

best regards.
 
my overalls have superpowers - they repel people who think fashion is important. 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!