hi;
Similar validation needs to be done in lockRecord() (a LockManager method) which will need to access the record number storage in FileManager.
before calling the lockManager.lockRecord() in facade class call the
fileManager.isRecordExist() (ex) and if the record not exist throw
RecordNotFoundException and don't call the lockManager.lockRecord(),
i think using this idea will deacrease the association between the facade
class (Data class in my project) and LockManager.
and this idea will make you not to pass a ref for facade to LockManager
class.
BR;
Mohamed Darim,
SCJP,
SCJD in progress ... ( upload 1/april/2008).