Class SqliteMaxValueIncrementer
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer
org.springframework.jdbc.support.incrementer.SqliteMaxValueIncrementer
- All Implemented Interfaces:
- InitializingBean, DataFieldMaxValueIncrementer
DataFieldMaxValueIncrementer that increments the maximum value of a given table with
the equivalent of an auto-increment column, using a SQLite select max(rowid) query.- Since:
- 7.0
- Author:
- Luke Taylor, Juergen Hoeller
- 
Field SummaryFields inherited from class AbstractDataFieldMaxValueIncrementerpaddingLength
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor for bean property style usage.SqliteMaxValueIncrementer(DataSource dataSource, String incrementerName, String columnName) Convenience constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected longDetermine the next key to use, as a long.Methods inherited from class AbstractColumnMaxValueIncrementerafterPropertiesSet, getCacheSize, getColumnName, setCacheSize, setColumnNameMethods inherited from class AbstractDataFieldMaxValueIncrementergetDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
- 
Constructor Details- 
SqliteMaxValueIncrementerpublic SqliteMaxValueIncrementer()Default constructor for bean property style usage.- See Also:
 
- 
SqliteMaxValueIncrementerConvenience constructor.- Parameters:
- dataSource- the DataSource to use
- incrementerName- the name of the sequence/table to use
- columnName- the name of the column in the sequence table to use
 
 
- 
- 
Method Details- 
getNextKeyprotected long getNextKey()Description copied from class:AbstractDataFieldMaxValueIncrementerDetermine the next key to use, as a long.- Specified by:
- getNextKeyin class- AbstractDataFieldMaxValueIncrementer
- Returns:
- the key to use as a long. It will eventually be converted later in another format by the public concrete methods of this class.
 
 
-