File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 53
53
* @author Michael Minella
54
54
* @author Will Schipp
55
55
* @author Mahmoud Ben Hassine
56
+ * @author Parikshit Dutta
56
57
*/
57
58
public class JdbcJobInstanceDao extends AbstractJdbcBatchMetadataDao implements
58
59
JobInstanceDao , InitializingBean {
@@ -301,11 +302,26 @@ public int getJobInstanceCount(@Nullable String jobName) throws NoSuchJobExcepti
301
302
*
302
303
* @param jobIncrementer
303
304
* the {@link DataFieldMaxValueIncrementer}
305
+ *
306
+ * @deprecated as of v5.0 in favor of using the {@link setJobInstanceIncrementer}
304
307
*/
308
+ @ Deprecated
305
309
public void setJobIncrementer (DataFieldMaxValueIncrementer jobIncrementer ) {
306
310
this .jobIncrementer = jobIncrementer ;
307
311
}
308
312
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
+
309
325
@ Override
310
326
public void afterPropertiesSet () throws Exception {
311
327
super .afterPropertiesSet ();
You can’t perform that action at this time.
0 commit comments