public class PostgreSQLSequenceMaxValueIncrementer extends AbstractSequenceMaxValueIncrementer
DataFieldMaxValueIncrementer that retrieves the next value of a given PostgreSQL sequence.
 Thanks to Tomislav Urban for the suggestion!paddingLength| Constructor and Description | 
|---|
PostgreSQLSequenceMaxValueIncrementer()
Default constructor for bean property style usage. 
 | 
PostgreSQLSequenceMaxValueIncrementer(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. 
 | 
getNextKeyafterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLengthpublic PostgreSQLSequenceMaxValueIncrementer()
public PostgreSQLSequenceMaxValueIncrementer(DataSource dataSource, String incrementerName)
dataSource - the DataSource to useincrementerName - the name of the sequence/table to useprotected String getSequenceQuery()
AbstractSequenceMaxValueIncrementerThe 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