• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lock & unlock

 
z meng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use hashtable(or other util) to save number of record when the record is locked.also when unlock, delete the number.especially number will be add when whole database lock.
when operate the record,first check the hashtable,if number of record in,don't allow operate.if not in,lock record and then operate.
my opinion is right,if not,pls help me,thx
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please look at this:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=25&t=001719
or do a search in the forum to find out more.
Regards
Enrico Mannarino
 
z meng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear Enrico,thx you answer.
by the way, are you also doing Fly by Night assignment?
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic