org.springframework.jdbc.support.incrementer
abstract public class: AbstractColumnMaxValueIncrementer [javadoc |
source]
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer
All Implemented Interfaces:
DataFieldMaxValueIncrementer, InitializingBean
Direct Known Subclasses:
DerbyMaxValueIncrementer, MySQLMaxValueIncrementer, HsqlMaxValueIncrementer
Abstract base class for
DataFieldMaxValueIncrementer implementations that use
a column in a custom sequence table. Subclasses need to provide the specific handling
of that table in their
#getNextKey() implementation..
- author:
Juergen - Hoeller
- since:
2.5.3 -
| Methods from org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer: |
|---|
|
afterPropertiesSet, getDataSource, getIncrementerName, getNextKey, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength |
| Method from org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer Detail: |
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (this.columnName == null) {
throw new IllegalArgumentException("Property 'columnName' is required");
}
}
|
public int getCacheSize() {
return this.cacheSize;
}
Return the number of buffered keys. |
public String getColumnName() {
return this.columnName;
}
Return the name of the column in the sequence table. |
public void setCacheSize(int cacheSize) {
this.cacheSize = cacheSize;
}
Set the number of buffered keys. |
public void setColumnName(String columnName) {
this.columnName = columnName;
}
Set the name of the column in the sequence table. |