Hi,
I've a questions related to cookie
// Locks a record so that it can only be updated or deleted by this client.
// Returned value is a cookie that must be used when the record is unlocked,
// updated, or deleted. If the specified record is already locked by a different
// client, the current thread gives up the CPU and consumes no CPU cycles until
// the record is unlocked.
public long lockRecord(long recNo)
throws RecordNotFoundException;
What Sun is trying to mean about cookie here in this interface. Are they trying to mean like this :
"returned value is a cookie which is nothing but it's same as magic cookie value in database file ()" ?
or
we have to randomly generate cookie value for each lock and the same generated must be used while performing other tasks like unlock/delete/update?
Thanks in advance,
Seetha...