Class JdbcCursorItemReaderAutoConfiguration

java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.jdbc.JdbcCursorItemReaderAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(JdbcCursorItemReaderProperties.class) @AutoConfigureAfter(org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class) @ConditionalOnProperty(prefix="spring.batch.job.jdbccursoritemreader", name="name") @Import(org.springframework.cloud.task.batch.autoconfigure.jdbc.JDBCSingleStepDataSourceAutoConfiguration.class) public class JdbcCursorItemReaderAutoConfiguration extends Object
Since:
2.3
Author:
Michael Minella, Glenn Renfro
  • Constructor Details

  • Method Details

    • itemReader

      @Bean @ConditionalOnMissingBean public org.springframework.batch.item.database.JdbcCursorItemReader<Map<String,Object>> itemReader(@Autowired(required=false) org.springframework.jdbc.core.RowMapper<Map<String,Object>> rowMapper, @Autowired(required=false) org.springframework.jdbc.core.PreparedStatementSetter preparedStatementSetter)
    • rowMapper

      @Bean @ConditionalOnMissingBean public org.springframework.jdbc.core.RowMapper<Map<String,Object>> rowMapper()
    • jdbcCursorItemReaderDataSourceProperties

      @ConditionalOnProperty(prefix="spring.batch.job.jdbccursoritemreader.datasource", name="enable", havingValue="true") @Bean(name="jdbcCursorItemReaderDataSourceProperties") @ConfigurationProperties("jdbccursoritemreader.datasource") public org.springframework.boot.autoconfigure.jdbc.DataSourceProperties jdbcCursorItemReaderDataSourceProperties()
    • readerDataSource

      @ConditionalOnProperty(prefix="spring.batch.job.jdbccursoritemreader.datasource", name="enable", havingValue="true") @Bean(name="jdbcCursorItemReaderSpringDataSource") public DataSource readerDataSource(@Qualifier("jdbcCursorItemReaderDataSourceProperties") org.springframework.boot.autoconfigure.jdbc.DataSourceProperties readerDataSourceProperties)