But I don' tknow those methods will be internal use by Data.java or will call from front end UI?
If use by front end (UI) that means once user select a account to modify, system will check either record had lock for by other user and return modify not allow?
Any guide on that?
// Locks a record so that it can only be updated or deleted by this client. // If the specified record is already locked, the current thread gives up // the CPU and consumes no CPU cycles until the record is unlocked. public void lock(int recNo) throws RecordNotFoundException; // Releases the lock on a record. public void unlock(int recNo) throws RecordNotFoundException; // Determines if a record is currenly locked. Returns true if the // record is locked, false otherwise. public boolean isLocked(int recNo) throws RecordNotFoundException;