org.springframework.jdbc.support.incrementer
Interface DataFieldMaxValueIncrementer

All Known Implementing Classes:
AbstractDataFieldMaxValueIncrementer, AbstractSequenceMaxValueIncrementer, DB2SequenceMaxValueIncrementer, HsqlMaxValueIncrementer, MySQLMaxValueIncrementer, OracleSequenceMaxValueIncrementer, PostgreSQLSequenceMaxValueIncrementer

public interface DataFieldMaxValueIncrementer

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

Typical implementations can use RDBMS SQL, native RDBMS sequences, and/or Stored Procedures to do the job.

Author:
Dmitriy Kopylenko, Isabelle Muszynski, Jean-Pierre Pawlak

Method Summary
 int nextIntValue()
          Increments data store field's max value as int.
 long nextLongValue()
          Increments data store field's max value as long.
 String nextStringValue()
          Increments data store field's max value as String.
 

Method Detail

nextIntValue

int nextIntValue()
                 throws DataAccessException
Increments data store field's max value as int.

Returns:
int next data store value such as max + 1
Throws:
DataAccessException

nextLongValue

long nextLongValue()
                   throws DataAccessException
Increments data store field's max value as long.

Returns:
int next data store value such as max + 1
Throws:
DataAccessException

nextStringValue

String nextStringValue()
                       throws DataAccessException
Increments data store field's max value as String.

Returns:
next data store value such as max + 1
Throws:
DataAccessException


Copyright (c) 2002-2005 The Spring Framework Project.