public class NumberVersionStrategy extends ColumnVersionStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
vers
Constructor and Description |
---|
NumberVersionStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Return the alias of this strategy.
|
Map<Column,String> |
getBulkUpdateValues() |
int |
getInitialValue()
Return the initial value for version column.
|
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.
|
void |
setInitialValue(int initial)
Set the initial value for version column.
|
checkVersion, compare, compare, compareVersion, delete, getJavaType, insert, load, load, map, select, update
afterLoad, setVersion
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
public static final String ALIAS
public void setInitialValue(int initial)
public int getInitialValue()
public 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 Object nextVersion(Object version)
ColumnVersionStrategy
nextVersion
in class ColumnVersionStrategy
public Map<Column,String> getBulkUpdateValues()
getBulkUpdateValues
in interface VersionStrategy
getBulkUpdateValues
in class AbstractVersionStrategy
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.