org.apache.openjpa.jdbc.meta.strats
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
public class NanoPrecisionTimestampVersionStrategy
- extends TimestampVersionStrategy
Uses a timestamp for optimistic versioning with nanosecond
precision.
- Author:
- Albert Lee
- See Also:
- Serialized Form
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy |
checkVersion, compare, compare, compareVersion, delete, getJavaType, insert, load, map, select, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
NanoPrecisionTimestampVersionStrategy
public NanoPrecisionTimestampVersionStrategy()
getAlias
public 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 interface Strategy
- Overrides:
getAlias
in class TimestampVersionStrategy
nextVersion
protected Object nextVersion(Object version)
- Description copied from class:
ColumnVersionStrategy
- Return the next version given the current one, which may be null.
- Overrides:
nextVersion
in class TimestampVersionStrategy
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.