kodo.jdbc.meta.strats
Class LockGroupTimestampVersionStrategy
java.lang.Object
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
kodo.jdbc.meta.strats.ColumnPerLockGroupVersionStrategy
kodo.jdbc.meta.strats.LockGroupTimestampVersionStrategy
- All Implemented Interfaces:
- org.apache.openjpa.jdbc.meta.Strategy, org.apache.openjpa.jdbc.meta.VersionStrategy
public class LockGroupTimestampVersionStrategy
- extends ColumnPerLockGroupVersionStrategy
Uses a timestamp for optimistic versioning.
| Fields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy |
vers |
|
Method Summary |
String |
getAlias()
|
protected int |
getJavaType()
Return the code from JavaTypes for the version values this
strategy uses. |
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.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 |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
LockGroupTimestampVersionStrategy
public LockGroupTimestampVersionStrategy()
getAlias
public String getAlias()
- Specified by:
getAlias in interface org.apache.openjpa.jdbc.meta.Strategy- Overrides:
getAlias in class org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
getJavaType
protected int getJavaType()
- Description copied from class:
ColumnPerLockGroupVersionStrategy
- Return the code from
JavaTypes for the version values this
strategy uses. This method is only used during mapping installation.
- Specified by:
getJavaType in class ColumnPerLockGroupVersionStrategy
nextVersion
protected Object nextVersion(Object version)
- Description copied from class:
ColumnPerLockGroupVersionStrategy
- Return the next version given the current one, which may be null.
- Specified by:
nextVersion in class ColumnPerLockGroupVersionStrategy
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.