Save This Page
Home » spring-framework-2.5.4 » org.springframework » jdbc » support » incrementer » [javadoc | source]
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..
Fields inherited from org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer:
paddingLength
Constructor:
 public AbstractColumnMaxValueIncrementer() 
 public AbstractColumnMaxValueIncrementer(DataSource dataSource,
    String incrementerName,
    String columnName) 
    Convenience constructor.
    Parameters:
    dataSource - the DataSource to use
    incrementerName - the name of the sequence/table to use
    columnName - the name of the column in the sequence table to use
Method from org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer Summary:
afterPropertiesSet,   getCacheSize,   getColumnName,   setCacheSize,   setColumnName
Methods from org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer:
afterPropertiesSet,   getDataSource,   getIncrementerName,   getNextKey,   getPaddingLength,   nextIntValue,   nextLongValue,   nextStringValue,   setDataSource,   setIncrementerName,   setPaddingLength
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer Detail:
 public  void afterPropertiesSet() 
 public int getCacheSize() 
    Return the number of buffered keys.
 public String getColumnName() 
    Return the name of the column in the sequence table.
 public  void setCacheSize(int cacheSize) 
    Set the number of buffered keys.
 public  void setColumnName(String columnName) 
    Set the name of the column in the sequence table.