Interface DataFieldMaxValueIncrementer

All Known Implementing Classes:
AbstractColumnMaxValueIncrementer, AbstractDataFieldMaxValueIncrementer, AbstractIdentityColumnMaxValueIncrementer, AbstractSequenceMaxValueIncrementer, Db2LuwMaxValueIncrementer, Db2MainframeMaxValueIncrementer, DerbyMaxValueIncrementer, H2SequenceMaxValueIncrementer, HanaSequenceMaxValueIncrementer, HsqlMaxValueIncrementer, HsqlSequenceMaxValueIncrementer, MariaDBSequenceMaxValueIncrementer, MySQLMaxValueIncrementer, OracleSequenceMaxValueIncrementer, PostgresSequenceMaxValueIncrementer, SqlServerMaxValueIncrementer, SqlServerSequenceMaxValueIncrementer, SybaseAnywhereMaxValueIncrementer, SybaseMaxValueIncrementer

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

    Modifier and Type
    Method
    Description
    int
    Increment the data store field's max value as int.
    long
    Increment the data store field's max value as long.
    Increment the data store field's max value as String.
  • Method Details

    • 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