posted 18 years ago
if a client wants to delete a record,it maybe call such methods in following order:
long cookie = lock(recNo);
delete(recNo,cookie);
unlock(recNo,cookie);
the trouble is:
if the record was deleted successfully then the unlock methods must throws RecordNotFoundException,I think it is unreasonable,how do you think?