Skip to content

Commit 49134ea

Browse files
parikshitduttafmbenhassine
authored andcommitted
Rename setJobIncrementer to setJobInstanceIncrementer in JdbcJobInstanceDao
Resolves #3929
1 parent 7b6b3ae commit 49134ea

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JdbcJobInstanceDao.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
* @author Michael Minella
5454
* @author Will Schipp
5555
* @author Mahmoud Ben Hassine
56+
* @author Parikshit Dutta
5657
*/
5758
public class JdbcJobInstanceDao extends AbstractJdbcBatchMetadataDao implements
5859
JobInstanceDao, InitializingBean {
@@ -301,11 +302,26 @@ public int getJobInstanceCount(@Nullable String jobName) throws NoSuchJobExcepti
301302
*
302303
* @param jobIncrementer
303304
* the {@link DataFieldMaxValueIncrementer}
305+
*
306+
* @deprecated as of v5.0 in favor of using the {@link setJobInstanceIncrementer}
304307
*/
308+
@Deprecated
305309
public void setJobIncrementer(DataFieldMaxValueIncrementer jobIncrementer) {
306310
this.jobIncrementer = jobIncrementer;
307311
}
308312

313+
/**
314+
* Setter for {@link DataFieldMaxValueIncrementer} to be used when
315+
* generating primary keys for {@link JobInstance} instances.
316+
*
317+
* @param jobIncrementer the {@link DataFieldMaxValueIncrementer}
318+
*
319+
* @since 5.0
320+
*/
321+
public void setJobInstanceIncrementer(DataFieldMaxValueIncrementer jobIncrementer) {
322+
this.jobIncrementer = jobIncrementer;
323+
}
324+
309325
@Override
310326
public void afterPropertiesSet() throws Exception {
311327
super.afterPropertiesSet();

0 commit comments

Comments
 (0)