java.lang.Object | |
↳ | org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer |
Known Direct Subclasses |
Base implementation of DataFieldMaxValueIncrementer
that delegates
to a single getNextKey()
template method that returns a long
.
Uses longs for String values, padding with zeroes if required.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
paddingLength | The length to which a string result should be pre-pended with zeroes |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for bean property style usage.
| |||||||||||
Convenience constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the data source to retrieve the value from.
| |||||||||||
Return the name of the sequence/table.
| |||||||||||
Return the padding length for String values.
| |||||||||||
Increment the data store field's max value as int.
| |||||||||||
Increment the data store field's max value as long.
| |||||||||||
Increment the data store field's max value as String.
| |||||||||||
Set the data source to retrieve the value from.
| |||||||||||
Set the name of the sequence/table.
| |||||||||||
Set the padding length, i.e.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the next key to use, as a long.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
|
The length to which a string result should be pre-pended with zeroes
Default constructor for bean property style usage.
Convenience constructor.
dataSource | the DataSource to use |
---|---|
incrementerName | the name of the sequence/table to use |
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Return the padding length for String values.
Increment the data store field's max value as int.
DataAccessException |
---|
Increment the data store field's max value as long.
DataAccessException |
---|
Increment the data store field's max value as String.
DataAccessException |
---|
Set the padding length, i.e. the length to which a string result should be pre-pended with zeroes.
Determine the next key to use, as a long.