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, updateafterLoad, setVersioncustomDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdatepublic static final String ALIAS
public void setInitialValue(int initial)
public int getInitialValue()
public String getAlias()
StrategygetAlias in interface StrategygetAlias in class AbstractStrategyprotected int getJavaType()
ColumnVersionStrategyJavaTypes for the version values this
strategy uses. This method is only used during mapping installation.getJavaType in class ColumnVersionStrategyprotected Object nextVersion(Object version)
ColumnVersionStrategynextVersion in class ColumnVersionStrategypublic Map<Column,String> getBulkUpdateValues()
getBulkUpdateValues in interface VersionStrategygetBulkUpdateValues in class AbstractVersionStrategyCopyright © 2006–2022 Apache Software Foundation. All rights reserved.