aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Help concerning the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Help concerning the "isLocked" method" Watch "Help concerning the "isLocked" method" New topic
Author

Help concerning the "isLocked" method

Frederic Thierry
Greenhorn

Joined: Apr 16, 2006
Posts: 22
I have implemented the "isLocked" method in the following manner:



I was wondering how you guys decided to then use this method inside your bussiness logic. Did some of you just implement it and did not use it at all. Or can we use this method prior reading or finding data to enhance record locking on the client side?

Thanks for your responses.

Fred
[ May 06, 2008: Message edited by: Frederic Thierry ]
Mary John
Ranch Hand

Joined: Sep 17, 2007
Posts: 109
I wonder if your assignment required you to implement it? if not, then why would you want to just implement it and not use it?

I had the method isLockedBy in my Lockmanager class that was called in the updateRecord method of the Data class(as we needed to check whether the cookie supplied is the one with which the record as been locked)

eg


SCJP 5.0<br />SCJD working on it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help concerning the "isLocked" method
 
Similar Threads
Scjd B&S- Failed due to locking.
VICTORY: Locking
A client can lock many records at a moment?
how can you avoid nested synchronization
unlock method question