Skip to content

Commit

Permalink
Replace deprecated setJobIncrementer with setJobInstanceIncrementer
Browse files Browse the repository at this point in the history
resolves #6057

Signed-off-by: Glenn Renfro <[email protected]>
  • Loading branch information
cppwfs committed Nov 11, 2024
1 parent cf4e581 commit 54aca00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class JdbcSearchableJobInstanceDao extends JdbcJobInstanceDao implements
@Override
public void afterPropertiesSet() throws Exception {

setJobIncrementer(new AbstractDataFieldMaxValueIncrementer() {
setJobInstanceIncrementer(new AbstractDataFieldMaxValueIncrementer() {
@Override
protected long getNextKey() {
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void afterPropertiesSet() throws Exception {
protected SearchableJobInstanceDao createJobInstanceDao() throws Exception {
JdbcSearchableJobInstanceDao dao = new JdbcSearchableJobInstanceDao();
dao.setJdbcTemplate(jdbcTemplate);
dao.setJobIncrementer(incrementerFactory.getIncrementer(databaseType, tablePrefix + "JOB_SEQ"));
dao.setJobInstanceIncrementer(incrementerFactory.getIncrementer(databaseType, tablePrefix + "JOB_SEQ"));
dao.setTablePrefix(tablePrefix);
dao.afterPropertiesSet();
return dao;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ TaskExecution createSampleJob(String jobName, int jobExecutionCount, BatchStatus

JdbcJobInstanceDao jobInstanceDao = new JdbcJobInstanceDao();
jobInstanceDao.setJdbcTemplate(jdbcTemplate);
jobInstanceDao.setJobIncrementer(incrementerFactory.getIncrementer(incrementerFallbackType.name(), "BATCH_JOB_SEQ"));
jobInstanceDao.setJobInstanceIncrementer(incrementerFactory.getIncrementer(incrementerFallbackType.name(), "BATCH_JOB_SEQ"));

// BATCH_JOB_EXECUTION differs and the DAO can not be used for BATCH4/5 inserting
DataFieldMaxValueIncrementer jobExecutionIncrementer = incrementerFactory.getIncrementer(incrementerFallbackType.name(), "BATCH_JOB_EXECUTION_SEQ");
Expand Down

0 comments on commit 54aca00

Please sign in to comment.