Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCMJD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Developer Certification (OCMJD)
the purpose for the isLock(int):boolean method
Mihai Radulescu
Ranch Hand
Posts: 918
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I work on URLyBird 1.3.3 my DBMain interface has a isLock method
// Determines if a record is currenly locked. Returns true if the // record is locked, false otherwise. public boolean isLocked(int recNo) throws RecordNotFoundException;
I must implement this method, I understand what the method must do but I don't know if this method is necessary ?
Regards,
Mihai
SCJP, SCJD, SCWCD, OCPJBCD
Seb Mathe
Ranch Hand
Posts: 225
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Mihai,
IMO, the isLock() method is not necessary, (except for
testing
purpose, for example putting an assert(isLock(recNo)) after lock(recNo)).
I don't see why a client of your DBMain should call it...
Regards,<br />Seb<br /> <br />SCJP 1.4
Police line, do not cross. Well, this tiny ad can go through:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
isLock(int):boolean method and the synchronized block
Deadlock on the thin cleint
lock and wait
My Locking Approach -- Comments Please
Hi, I have passed my assignment.
More...