org.apache.openjpa.jdbc.meta.strats
Class NanoPrecisionTimestampVersionStrategy

java.lang.Object
  extended by org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
      extended by org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
          extended by org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
              extended by org.apache.openjpa.jdbc.meta.strats.TimestampVersionStrategy
                  extended by 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

Field Summary
static String ALIAS
           
 
Fields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
vers
 
Constructor Summary
NanoPrecisionTimestampVersionStrategy()
           
 
Method Summary
 String getAlias()
          Return the alias of this strategy.
protected  Object nextVersion(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, compareVersion, delete, insert, 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 String ALIAS
See Also:
Constant Field Values
Constructor Detail

NanoPrecisionTimestampVersionStrategy

public NanoPrecisionTimestampVersionStrategy()
Method Detail

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.