public abstract class AbstractColumnMaxValueIncrementer extends AbstractDataFieldMaxValueIncrementer
DataFieldMaxValueIncrementer implementations that use
a column in a custom sequence table. Subclasses need to provide the specific handling
of that table in their AbstractDataFieldMaxValueIncrementer.getNextKey() implementation.paddingLength| Constructor and Description |
|---|
AbstractColumnMaxValueIncrementer()
Default constructor for bean property style usage.
|
AbstractColumnMaxValueIncrementer(DataSource dataSource,
String incrementerName,
String columnName)
Convenience constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc. |
int |
getCacheSize()
Return the number of buffered keys.
|
String |
getColumnName()
Return the name of the column in the sequence table.
|
void |
setCacheSize(int cacheSize)
Set the number of buffered keys.
|
void |
setColumnName(String columnName)
Set the name of the column in the sequence table.
|
getDataSource, getIncrementerName, getNextKey, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLengthpublic AbstractColumnMaxValueIncrementer()
public AbstractColumnMaxValueIncrementer(DataSource dataSource, String incrementerName, String columnName)
dataSource - the DataSource to useincrementerName - the name of the sequence/table to usecolumnName - the name of the column in the sequence table to usepublic void setColumnName(String columnName)
public String getColumnName()
public void setCacheSize(int cacheSize)
public int getCacheSize()
public void afterPropertiesSet()
InitializingBeanBeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractDataFieldMaxValueIncrementer