|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
public class TimestampVersionStrategy
Uses a timestamp for optimistic versioning.
Field Summary | |
---|---|
static java.lang.String |
ALIAS
|
Fields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy |
---|
vers |
Constructor Summary | |
---|---|
TimestampVersionStrategy()
|
Method Summary | |
---|---|
java.lang.String |
getAlias()
Return the alias of this strategy. |
protected int |
getJavaType()
Return the code from JavaTypes for the version values this
strategy uses. |
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.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 |
---|
public static final java.lang.String ALIAS
Constructor Detail |
---|
public TimestampVersionStrategy()
Method Detail |
---|
public java.lang.String getAlias()
Strategy
getAlias
in interface Strategy
getAlias
in class AbstractStrategy
protected int getJavaType()
ColumnVersionStrategy
JavaTypes
for the version values this
strategy uses. This method is only used during mapping installation.
getJavaType
in class ColumnVersionStrategy
protected java.lang.Object nextVersion(java.lang.Object version)
ColumnVersionStrategy
nextVersion
in class ColumnVersionStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |