public class Version extends Object implements Timestamp
The version is a logical timestamp that represents a point in logical time at which an event occurs. This is used in both pessimistic and optimistic locking protocols to ensure that the state of a shared resource has not changed at the end of a transaction.
| Constructor and Description | 
|---|
Version(long version)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(Timestamp o)  | 
boolean | 
equals(Object obj)  | 
int | 
hashCode()  | 
String | 
toString()  | 
long | 
value()
Returns the lock version. 
 | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisNewerThan, isOlderThanpublic int compareTo(Timestamp o)
compareTo in interface Comparable<Timestamp>public int hashCode()
public boolean equals(Object obj)
public long value()