Class Db2LuwMaxValueIncrementer
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
org.springframework.jdbc.support.incrementer.Db2LuwMaxValueIncrementer
- All Implemented Interfaces:
- InitializingBean,- DataFieldMaxValueIncrementer
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!
- Since:
- 4.3.15
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementerpaddingLength
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor for bean property style usage.Db2LuwMaxValueIncrementer(DataSource dataSource, String incrementerName) Convenience constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringReturn the database-specific query to use for retrieving a sequence value.Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementergetNextKeyMethods inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementerafterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
- 
Constructor Details- 
Db2LuwMaxValueIncrementerpublic Db2LuwMaxValueIncrementer()Default constructor for bean property style usage.
- 
Db2LuwMaxValueIncrementerConvenience constructor.- Parameters:
- dataSource- the DataSource to use
- incrementerName- the name of the sequence/table to use
 
 
- 
- 
Method Details- 
getSequenceQueryDescription 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 class- AbstractSequenceMaxValueIncrementer
 
 
-