Hi All,
Should we throw RNFE in update/delete method ?
but signature of update /delete is in instruction like :
public void update(int recNo,
String [] data)
throws RecordNotFoundException;
// Deletes a record, making the record number and associated disk
// storage available for reuse.
public void delete(int recNo) throws RecordNotFoundException;
but signature of lock method
// 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.
so I think lock method will always be called before update/delete , correct?
So lock method is already throwing RNFE so no need to throw RNFE in update/delete .
correct?
Please reply .
Regards,
Pramod