When versioning data nodes in optimistic locking, a DataVersion is assigned to each node. Versions need to implement the {@link #newerThan} method sothey can be compared during the validation phase upon commit.
It is recommended that implementations implement {@link java.io.Externalizable} and make useof a good marshalling/unmarshalling mechanism for the sake of efficiency, as these objects are frequently serialized to be replicated across the wire.
@author
Manik Surtani (manik AT jboss DOT org)
@deprecated this is to support a deprecated locking scheme (Optimistic Locking). Will be removed when Optimistic Locking support is removed.