Dear All,
This is my first posting on this forum and I'm afraid that it is a pretty dumb question! Sorry!
I am trying to code up the lock and unlock methods in the data class. Currently I have defined a variable thus
private static HashSet locks = new HashSet();
to keep track of locked records.
My understanding is that a static variable exists only once for a class - but this does not appear to be the case when I try and
test it.
To test it I set a breakpoint in my lock class and watched it add() the selected record number into locks and then left that session hanging. I then start up a second window and attempt to update the same record - when I debug this time the locks variable has a different id to that from the one for the first window and is empty so it lets me go ahead and update.
I guess that I am missing something pretty fundamental here - can anyone tell me what it is?