B&S: must i pass ref to fileHandler to lockHandler?
posted 9 years ago
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. ???