org.springframework.jdbc.support.incrementer
Interface DataFieldMaxValueIncrementer

All Known Implementing Classes:
AbstractDataFieldMaxValueIncrementer

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.

Version:
$Id: DataFieldMaxValueIncrementer.java,v 1.3 2004/03/18 02:46:11 trisberg Exp $
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.
 java.lang.String nextStringValue()
          Increments data store field's max value as String.
 

Method Detail

nextIntValue

public 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

public 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

public java.lang.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) 2003-2004 The Spring Framework Project.