Class NanoPrecisionTimestampVersionStrategy
java.lang.Object
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
org.apache.openjpa.jdbc.meta.strats.TimestampVersionStrategy
org.apache.openjpa.jdbc.meta.strats.NanoPrecisionTimestampVersionStrategy
- All Implemented Interfaces:
Serializable, Strategy, VersionStrategy
Uses a timestamp for optimistic versioning with nanosecond
precision.
- Author:
- Albert Lee
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractVersionStrategy
vers -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TimestampVersionStrategy
getBulkUpdateValues, getJavaType, insert, nextVersion, updateMethods inherited from class ColumnVersionStrategy
checkVersion, compare, compare, compareVersion, delete, getJavaType, load, load, map, selectMethods inherited from class AbstractVersionStrategy
afterLoad, setVersionMethods inherited from class AbstractStrategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Strategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
NanoPrecisionTimestampVersionStrategy
public NanoPrecisionTimestampVersionStrategy()
-
-
Method Details
-
getAlias
-
currentTimestamp
Description copied from class:TimestampVersionStrategyThe current time, which the next version is derived from.- Overrides:
currentTimestampin classTimestampVersionStrategy
-