Hello Everyone,
I know that this theme was discussed early.
But i still do not understand how to implement this requirement:
My DBMain:
And i have this must option in assignment:
Any methods that throw RecordNotFoundException should do so if a specified record does not exist or is marked as deleted in the database file.
All my methods has throws RecordNotFoundException; How I can throw RecordNotFoundException from the find method?
I was try to implement it but get strange results:
This code fails with RecordNotFoundException:
Can I just write in javadoc its not necessary to unlock record after delete because it was unlocked inside delete method?
Got a deadlock here because
thread starting wait and there is no way to unlock it:
Can I lock one record twice from one client? In
java doc i see only "Locks a record so that it can only be
updated or deleted by this client."
there is no info about locking.
Thanks for help.