Top Description Methods
org.springframework.jdbc.support.incrementer

public Interface DataFieldMaxValueIncrementer

Known Direct Implementers
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
Imports
org.springframework.dao.DataAccessException

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.

Authors
Dmitriy Kopylenko, Jean-Pierre Pawlak, Juergen Hoeller

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

int next data store value such as max + 1
nextIntValue
()

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

public long

Returns:

int next data store value such as max + 1
nextLongValue
()

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

public String

Returns:

next data store value such as max + 1
nextStringValue
()

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

Method Detail

nextIntValueback to summary
public int nextIntValue() throws DataAccessException

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

Returns:int

int next data store value such as max + 1

Exceptions
DataAccessException:
in case of errors
nextLongValueback to summary
public long nextLongValue() throws DataAccessException

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

Returns:long

int next data store value such as max + 1

Exceptions
DataAccessException:
in case of errors
nextStringValueback to summary
public String nextStringValue() throws DataAccessException

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

Returns:String

next data store value such as max + 1

Exceptions
DataAccessException:
in case of errors