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 Summary
ConstructorsConstructorDescriptionMongoSequenceIncrementer(org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String sequenceName) -
Method Summary
Modifier and TypeMethodDescriptionintlong
-
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:
nextLongValuein interfaceorg.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer- Throws:
org.springframework.dao.DataAccessException
-
nextIntValue
public int nextIntValue() throws org.springframework.dao.DataAccessException- Specified by:
nextIntValuein interfaceorg.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer- Throws:
org.springframework.dao.DataAccessException
-
nextStringValue
- Specified by:
nextStringValuein interfaceorg.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer- Throws:
org.springframework.dao.DataAccessException
-