public class MultiColumnVersionStrategy extends NumberVersionStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
vers
Constructor and Description |
---|
MultiColumnVersionStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Return the alias of this strategy.
|
Number[] |
getInitialValues()
Return the initial values for version columns.
|
protected int |
getJavaType()
Return the code from
JavaTypes for the version values this
strategy uses. |
protected int |
getJavaType(int i)
Return the code from
JavaTypes for the version value this given
column index uses. |
void |
initialize()
Perform caching and other initialization operations.
|
protected Object |
nextVersion(Object version)
Return the next version given the current one, which may be null.
|
void |
setInitialValues(Number[] initial)
Set the initial value for version columns.
|
getBulkUpdateValues, getInitialValue, setInitialValue
checkVersion, compare, compare, compareVersion, delete, insert, load, load, map, select, update
afterLoad, setVersion
customDelete, customInsert, customUpdate, isCustomDelete, isCustomInsert, isCustomUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customDelete, customInsert, customUpdate, isCustomDelete, isCustomInsert, isCustomUpdate
public static final String ALIAS
public void initialize()
Strategy
Strategy.map(boolean)
, and after all related components have been
mapped as well.initialize
in interface Strategy
initialize
in class AbstractStrategy
public void setInitialValues(Number[] initial)
public Number[] getInitialValues()
public String getAlias()
Strategy
getAlias
in interface Strategy
getAlias
in class NumberVersionStrategy
protected int getJavaType()
ColumnVersionStrategy
JavaTypes
for the version values this
strategy uses. This method is only used during mapping installation.getJavaType
in class NumberVersionStrategy
protected int getJavaType(int i)
ColumnVersionStrategy
JavaTypes
for the version value this given
column index uses. Only used if the version strategy employs more than
one column.getJavaType
in class ColumnVersionStrategy
protected Object nextVersion(Object version)
ColumnVersionStrategy
nextVersion
in class NumberVersionStrategy
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.