This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: where can i put the Map of locking and unlocking? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: where can i put the Map of locking and unlocking?" Watch "NX: where can i put the Map of locking and unlocking?" New topic
Author

NX: where can i put the Map of locking and unlocking?

guyue0505
Greenhorn

Joined: May 25, 2003
Posts: 21
In my application , i have a class named LockManager which control the lock and unlock . i think i will need a hashMap in this class. The key is the recNo and the value is the lockCookie of the correspond recNo.
And the lockManager has a function named setMap(Map hashMap){ this.hashMap =
hashMap; }
My question is where can i put the hashMap's declaretion , in Server.java
or other place?
 
GeeCON Prague 2014
 
subject: NX: where can i put the Map of locking and unlocking?