Class Db2MainframeMaxValueIncrementer
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
org.springframework.jdbc.support.incrementer.Db2MainframeMaxValueIncrementer
- All Implemented Interfaces:
 InitializingBean,DataFieldMaxValueIncrementer
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!
- Since:
 - 4.3.15
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
paddingLength - 
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for bean property style usage.Db2MainframeMaxValueIncrementer(DataSource dataSource, String incrementerName) Convenience constructor. - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturn the database-specific query to use for retrieving a sequence value.Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
getNextKeyMethods inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
afterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength 
- 
Constructor Details
- 
Db2MainframeMaxValueIncrementer
public Db2MainframeMaxValueIncrementer()Default constructor for bean property style usage. - 
Db2MainframeMaxValueIncrementer
Convenience constructor.- Parameters:
 dataSource- the DataSource to useincrementerName- the name of the sequence/table to use
 
 - 
 - 
Method Details
- 
getSequenceQuery
Description copied from class:AbstractSequenceMaxValueIncrementerReturn the database-specific query to use for retrieving a sequence value.The provided SQL is supposed to result in a single row with a single column that allows for extracting a
longvalue.- Specified by:
 getSequenceQueryin classAbstractSequenceMaxValueIncrementer
 
 -