public class Db2LuwMaxValueIncrementer extends AbstractSequenceMaxValueIncrementer
DataFieldMaxValueIncrementer
that retrieves the next value
of a given sequence on DB2 LUW (for Linux, Unix and Windows).
Thanks to Mark MacMahon for the suggestion!
Db2MainframeMaxValueIncrementer
paddingLength
Constructor and Description |
---|
Db2LuwMaxValueIncrementer()
Default constructor for bean property style usage.
|
Db2LuwMaxValueIncrementer(DataSource dataSource,
String incrementerName)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getSequenceQuery()
Return the database-specific query to use for retrieving a sequence value.
|
getNextKey
afterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
public Db2LuwMaxValueIncrementer()
public Db2LuwMaxValueIncrementer(DataSource dataSource, String incrementerName)
dataSource
- the DataSource to useincrementerName
- the name of the sequence/table to useprotected String getSequenceQuery()
AbstractSequenceMaxValueIncrementer
The provided SQL is supposed to result in a single row with a single
column that allows for extracting a long
value.
getSequenceQuery
in class AbstractSequenceMaxValueIncrementer