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:
java.io.Serializable
,Strategy
,VersionStrategy
public class NanoPrecisionTimestampVersionStrategy extends TimestampVersionStrategy
Uses a timestamp for optimistic versioning with nanosecond precision.- Author:
- Albert Lee
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALIAS
-
Fields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
vers
-
-
Constructor Summary
Constructors Constructor Description NanoPrecisionTimestampVersionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlias()
Return the alias of this strategy.protected java.lang.Object
nextVersion(java.lang.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, getJavaType
-
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
checkVersion, compare, compare, compareVersion, delete, getJavaType, insert, load, load, map, select, update
-
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
afterLoad, setVersion
-
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.jdbc.meta.Strategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
-
-
-
-
Field Detail
-
ALIAS
public static final java.lang.String ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAlias
public java.lang.String getAlias()
Description copied from interface:Strategy
Return the alias of this strategy. For custom strategies, return the full class name.- Specified by:
getAlias
in interfaceStrategy
- Overrides:
getAlias
in classTimestampVersionStrategy
-
nextVersion
protected java.lang.Object nextVersion(java.lang.Object version)
Description copied from class:ColumnVersionStrategy
Return the next version given the current one, which may be null.- Overrides:
nextVersion
in classTimestampVersionStrategy
-
-