Class MongoSequenceIncrementer

java.lang.Object
org.springframework.batch.core.repository.dao.MongoSequenceIncrementer
All Implemented Interfaces:
org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer

public class MongoSequenceIncrementer extends Object implements org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
Since:
5.2.0
Author:
Mahmoud Ben Hassine, Christoph Strobl
  • Constructor Details

    • MongoSequenceIncrementer

      public MongoSequenceIncrementer(org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String sequenceName)
  • Method Details

    • nextLongValue

      public long nextLongValue() throws org.springframework.dao.DataAccessException
      Specified by:
      nextLongValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
      Throws:
      org.springframework.dao.DataAccessException
    • nextIntValue

      public int nextIntValue() throws org.springframework.dao.DataAccessException
      Specified by:
      nextIntValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
      Throws:
      org.springframework.dao.DataAccessException
    • nextStringValue

      public String nextStringValue() throws org.springframework.dao.DataAccessException
      Specified by:
      nextStringValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
      Throws:
      org.springframework.dao.DataAccessException