public abstract class

AbstractColumnMaxValueIncrementer

extends AbstractDataFieldMaxValueIncrementer
java.lang.Object
   ↳ org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
     ↳ org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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..

Summary

[Expand]
Inherited Fields
From class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
Public Constructors
AbstractColumnMaxValueIncrementer()
Default constructor for bean property style usage.
AbstractColumnMaxValueIncrementer(DataSource dataSource, String incrementerName, String columnName)
Convenience constructor.
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
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.
[Expand]
Inherited Methods
From class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer

Public Constructors

public AbstractColumnMaxValueIncrementer ()

Default constructor for bean property style usage.

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

Public Methods

public void afterPropertiesSet ()

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.

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.