File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLybird locking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLybird locking" Watch "URLybird locking" New topic

URLybird locking

donal horgan
Ranch Hand

Joined: Mar 11, 2005
Posts: 54
Quick question -- did people find themselves using one lock flag per record or simply one lock flag in total denoting as to whether a record is locked at a particluar time.i.e. where only 1 record can be locked at any omoent in time
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
I don't think it would satisfy the requirements if you lock the entire database just to modify a particular record. I mean, in that case, you would not even need to pass a record number to your lock/unlock methods -- just lock the entire database, modify the record, and unlock the entire database. Would not be much of a challenge.
I agree. Here's the link:
subject: URLybird locking
It's not a secret anymore!