DataFieldMaxValueIncrementer implementations
which are based on identity columns in a sequence-like table.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | nextValueIndex
The next id to serve from the value cache. |
| private long[] | valueCache
The current cache of values. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbstractIdentityColumnMaxValueIncrementer(DataSource dataSource, String incrementerName, String columnName)
|
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the SQL statement to usethe currently generated key values
(the number of values corresponds to values)getCacheSize())Statement to use to clean up "sequence" values. |
| protected abstract String | Returns: the SQL statement to useStatement to use to obtain the current identity value. |
| protected abstract String | Returns: the SQL statement to useStatement to use to increment the "sequence" value. |
| protected synchronized long | getNextKey()
Implements abstract org. Determine the next key to use, as a long. |
| public boolean | isDeleteSpecificValues()
Return whether to delete the entire range below the current maximum key value
( |
| public void | setDeleteSpecificValues(boolean deleteSpecificValues)
Specify whether to delete the entire range below the current maximum key value
( |
| deleteSpecificValues | back to summary |
|---|---|
| private boolean deleteSpecificValues | |
| nextValueIndex | back to summary |
|---|---|
| private int nextValueIndex The next id to serve from the value cache. | |
| valueCache | back to summary |
|---|---|
| private long[] valueCache The current cache of values. | |
| AbstractIdentityColumnMaxValueIncrementer | back to summary |
|---|---|
| public AbstractIdentityColumnMaxValueIncrementer() Default constructor for bean property style usage.
| |
| AbstractIdentityColumnMaxValueIncrementer | back to summary |
|---|---|
| public AbstractIdentityColumnMaxValueIncrementer(DataSource dataSource, String incrementerName, String columnName) | |
| getDeleteStatement | back to summary |
|---|---|
| protected String getDeleteStatement(long[] values) Statement to use to clean up "sequence" values. The default implementation either deletes the entire range below
the current maximum value, or the specifically generated values
(starting with the lowest minus 1, just preserving the maximum value)
- according to the
| |
| getIdentityStatement | back to summary |
|---|---|
| protected abstract String getIdentityStatement() Statement to use to obtain the current identity value.
| |
| getIncrementStatement | back to summary |
|---|---|
| protected abstract String getIncrementStatement() Statement to use to increment the "sequence" value.
| |
| getNextKey | back to summary |
|---|---|
| protected synchronized long getNextKey() throws DataAccessException Implements abstract org. Doc from org. Determine the next key to use, as a long.
| |
| isDeleteSpecificValues | back to summary |
|---|---|
| public boolean isDeleteSpecificValues() Return whether to delete the entire range below the current maximum key value
( | |
| setDeleteSpecificValues | back to summary |
|---|---|
| public void setDeleteSpecificValues(boolean deleteSpecificValues) Specify whether to delete the entire range below the current maximum key value
( | |