Java Code Examples for org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer

The following examples show how to use org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer. These examples are extracted from open source projects. 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
/**
 * @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
/**
 * @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
/**
 * @see JdbcJobExecutionDao#afterPropertiesSet()
 */
@Override
public void afterPropertiesSet() throws Exception {

	setJobIncrementer(new AbstractDataFieldMaxValueIncrementer() {
		@Override
		protected long getNextKey() {
			return 0;
		}
	});

	super.afterPropertiesSet();

}