DataFieldMaxValueIncrementer implementations that use
a database sequence. Subclasses need to provide the database-specific SQL to use.
getSequenceQuery
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbstractSequenceMaxValueIncrementer(DataSource
the DataSource to use dataSource, String the name of the sequence/table to use incrementerName)Convenience constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected long | getNextKey()
Implements abstract org. Executes the SQL as specified by |
| protected abstract String |
| AbstractSequenceMaxValueIncrementer | back to summary |
|---|---|
| public AbstractSequenceMaxValueIncrementer() Default constructor for bean property style usage.
| |
| AbstractSequenceMaxValueIncrementer | back to summary |
|---|---|
| public AbstractSequenceMaxValueIncrementer(DataSource dataSource, String incrementerName) Convenience constructor.
| |
| getNextKey | back to summary |
|---|---|
| protected long getNextKey() throws DataAccessException Implements abstract org. Executes the SQL as specified by
| |
| getSequenceQuery | back to summary |
|---|---|
| protected abstract String getSequenceQuery() Return 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 | |