org.apache.openjpa.jdbc.meta.strats
Class TimestampVersionStrategy
java.lang.Object
   org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
       org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
           org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
               org.apache.openjpa.jdbc.meta.strats.TimestampVersionStrategy
org.apache.openjpa.jdbc.meta.strats.TimestampVersionStrategy
- All Implemented Interfaces: 
- Serializable, Strategy, VersionStrategy
- Direct Known Subclasses: 
- NanoPrecisionTimestampVersionStrategy
- public class TimestampVersionStrategy 
- extends ColumnVersionStrategy
Uses a timestamp for optimistic versioning.
- Author:
- Abe White
- See Also:
- Serialized Form
 
 
 
 
 
 
 
| 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
TimestampVersionStrategy
public TimestampVersionStrategy()
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:
- getAliasin interface- Strategy
- Overrides:
- getAliasin class- AbstractStrategy
 
- 
 
getJavaType
protected int getJavaType()
- Description copied from class: ColumnVersionStrategy
- Return the code from JavaTypesfor the version values this
 strategy uses. This method is only used during mapping installation.
 
- 
- Specified by:
- getJavaTypein class- ColumnVersionStrategy
 
- 
 
nextVersion
protected Object nextVersion(Object version)
- Description copied from class: ColumnVersionStrategy
- Return the next version given the current one, which may be null.
 
- 
- Specified by:
- nextVersionin class- ColumnVersionStrategy
 
- 
 
getBulkUpdateValues
public Map getBulkUpdateValues()
- 
- Specified by:
- getBulkUpdateValuesin interface- VersionStrategy
- Overrides:
- getBulkUpdateValuesin class- AbstractVersionStrategy
 
- 
- Returns:
- a Map specifying how to update each version
 column during a bulk update.
 
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.