• Post Reply Bookmark Topic Watch Topic
  • New Topic

unlock cookie problem

 
xi brian
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Releases the lock on a record. Cookie must be the cookie
returned when the record was locked; otherwise throws SecurityException.

public void unlock(long recNo, long cookie)
throws SecurityException;"

does the above means that recNo and cookie must be equal? otherwise, throws SecurityException
 
Vinicius Florentino
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Method documentation contains: Releases the lock on a record. Cookie must be the cookie returned when the record was locked; otherwise throws SecurityException.?

Throw SecurityException if you use other than returned using the lock method.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!