站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

DataFieldMaxValueIncrementer (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

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 may use standard SQL, native RDBMS sequences or Stored Procedures to do the job.

Author:
Dmitriy Kopylenko, Jean-Pierre Pawlak, Juergen Hoeller

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

Method Detail

nextIntValue

int nextIntValue()
                 throws DataAccessException
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

nextLongValue

long nextLongValue()
                   throws DataAccessException
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

nextStringValue

String nextStringValue()
                       throws DataAccessException
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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.