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 org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
vers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Return the alias of this strategy.protected ObjectnextVersion(Object version) Return the next version given the current one, which may be null.Methods inherited from class org.apache.openjpa.jdbc.meta.strats.TimestampVersionStrategy
getBulkUpdateValues, getJavaTypeMethods inherited from class org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
checkVersion, compare, compare, compareVersion, delete, getJavaType, insert, load, load, map, select, updateMethods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
afterLoad, setVersionMethods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.jdbc.meta.Strategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
NanoPrecisionTimestampVersionStrategy
public NanoPrecisionTimestampVersionStrategy()
-
-
Method Details
-
getAlias
Description copied from interface:StrategyReturn the alias of this strategy. For custom strategies, return the full class name.- Specified by:
getAliasin interfaceStrategy- Overrides:
getAliasin classTimestampVersionStrategy
-
nextVersion
Description copied from class:ColumnVersionStrategyReturn the next version given the current one, which may be null.- Overrides:
nextVersionin classTimestampVersionStrategy
-