Originally posted by biang lin: I don't have a "LockManager" class,I just use a HashMap to store cookies.
But how do you pass the cookies? The DBMain interface passes the recno parameter only. This means you would violate the DBMain interface and thereby violate the assignment requirements. Or did i miss something?
Hi Arjan There are many different versions of the three different assignments. Some versions require cookies to be returned by the lock method and used in other methods. Other versions do not allow cookies to be used within any of the methods of the Data class. If Biang has one of the assignments that allows him to return a long cookie from his lock method, then he can store that cookie inside a map within the Data class. Regards, Andrew
Hi all, Thanks for your comments. I think locking is very simple in my project,so I didn't use LockManager. But I have another question: There are 80 points in the Marking Criteria for Locking, so it is very important in the project. But I think it need only a little code to do it(two methods and about 20 lines of code). So what these 80 points for?