Db2MainframeMaxValueIncrementer
@Deprecated public class DB2MainframeSequenceMaxValueIncrementer extends AbstractSequenceMaxValueIncrementer
DataFieldMaxValueIncrementer
that retrieves the next value
of a given sequence on DB2 for the mainframe (z/OS, DB2/390, DB2/400).
Thanks to Jens Eickmeyer for the suggestion!
paddingLength
Constructor and Description |
---|
DB2MainframeSequenceMaxValueIncrementer()
Deprecated.
Default constructor for bean property style usage.
|
DB2MainframeSequenceMaxValueIncrementer(DataSource dataSource,
String incrementerName)
Deprecated.
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getSequenceQuery()
Deprecated.
Return the database-specific query to use for retrieving a sequence value.
|
getNextKey
afterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
public DB2MainframeSequenceMaxValueIncrementer()
public DB2MainframeSequenceMaxValueIncrementer(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