org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer Java Examples
The following examples show how to use
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JdbcSearchableStepExecutionDao.java From spring-cloud-dataflow with Apache License 2.0 | 6 votes |
/** * @see JdbcJobExecutionDao#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(dataSource != null, "DataSource must be provided"); if (getJdbcTemplate() == null) { setJdbcTemplate(new JdbcTemplate(dataSource)); } setStepExecutionIncrementer(new AbstractDataFieldMaxValueIncrementer() { @Override protected long getNextKey() { return 0; } }); super.afterPropertiesSet(); }
Example #2
Source File: JdbcSearchableJobExecutionDao.java From spring-cloud-dataflow with Apache License 2.0 | 6 votes |
/** * @see JdbcJobExecutionDao#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(dataSource != null, "DataSource must be provided"); if (getJdbcTemplate() == null) { setJdbcTemplate(new JdbcTemplate(dataSource)); } setJobExecutionIncrementer(new AbstractDataFieldMaxValueIncrementer() { @Override protected long getNextKey() { return 0; } }); allExecutionsPagingQueryProvider = getPagingQueryProvider(); executionsWithStepCountPagingQueryProvider = getPagingQueryProvider(FIELDS_WITH_STEP_COUNT, null, null); byJobNamePagingQueryProvider = getPagingQueryProvider(NAME_FILTER); byStatusPagingQueryProvider = getPagingQueryProvider(STATUS_FILTER); byJobNameAndStatusPagingQueryProvider = getPagingQueryProvider(NAME_AND_STATUS_FILTER); byJobNameWithStepCountPagingQueryProvider = getPagingQueryProvider(FIELDS_WITH_STEP_COUNT, null, NAME_FILTER); super.afterPropertiesSet(); }
Example #3
Source File: JdbcSearchableJobInstanceDao.java From spring-cloud-dataflow with Apache License 2.0 | 5 votes |
/** * @see JdbcJobExecutionDao#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { setJobIncrementer(new AbstractDataFieldMaxValueIncrementer() { @Override protected long getNextKey() { return 0; } }); super.afterPropertiesSet(); }