public interface

DataFieldMaxValueIncrementer

org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
Known Indirect Subclasses

Class Overview

Interface that defines contract of incrementing any data store field's maximum value. Works much like a sequence number generator.

Typical implementations may use standard SQL, native RDBMS sequences or Stored Procedures to do the job.

Summary

Public Methods
abstract int nextIntValue()
Increment the data store field's max value as int.
abstract long nextLongValue()
Increment the data store field's max value as long.
abstract String nextStringValue()
Increment the data store field's max value as String.

Public Methods

public abstract int nextIntValue ()

Increment the data store field's max value as int.

Returns
  • int next data store value such as max + 1
Throws
DataAccessException in case of errors

public abstract long nextLongValue ()

Increment the data store field's max value as long.

Returns
  • int next data store value such as max + 1
Throws
DataAccessException in case of errors

public abstract String nextStringValue ()

Increment the data store field's max value as String.

Returns
  • next data store value such as max + 1
Throws
DataAccessException in case of errors