Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic