Uses of Class
org.springframework.batch.item.database.builder.JdbcPagingItemReaderBuilder
Package
Description
Builders for database item readers and writers.
-
Uses of JdbcPagingItemReaderBuilder in org.springframework.batch.item.database.builder
Modifier and TypeMethodDescriptionJdbcPagingItemReaderBuilder.beanRowMapper
(Class<T> mappedClass) Creates aBeanPropertyRowMapper
to be used as yourRowMapper
.JdbcPagingItemReaderBuilder.currentItemCount
(int currentItemCount) Index for the current item.JdbcPagingItemReaderBuilder.dataRowMapper
(Class<T> mappedClass) Creates aDataClassRowMapper
to be used as yourRowMapper
.JdbcPagingItemReaderBuilder.dataSource
(DataSource dataSource) TheDataSource
to query against.JdbcPagingItemReaderBuilder.fetchSize
(int fetchSize) A hint to the underlying RDBMS as to how many records to return with each fetch.JdbcPagingItemReaderBuilder.fromClause
(String fromClause) The SQLFROM
clause for a db specificPagingQueryProvider
.JdbcPagingItemReaderBuilder.groupClause
(String groupClause) The SQLGROUP BY
clause for a db specific @PagingQueryProvider
.JdbcPagingItemReaderBuilder.maxItemCount
(int maxItemCount) Configure the max number of items to be read.The name used to calculate the key within theExecutionContext
.JdbcPagingItemReaderBuilder.pageSize
(int pageSize) The number of records to request per page/query.JdbcPagingItemReaderBuilder.parameterValues
(Map<String, Object> parameterValues) AMap
of values to set on the SQL's prepared statement.JdbcPagingItemReaderBuilder.queryProvider
(PagingQueryProvider provider) APagingQueryProvider
to provide the queries required.TheRowMapper
used to map the query results to objects.JdbcPagingItemReaderBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.JdbcPagingItemReaderBuilder.selectClause
(String selectClause) The SQLSELECT
clause for a db specificPagingQueryProvider
.The keys to sort by.JdbcPagingItemReaderBuilder.whereClause
(String whereClause) The SQLWHERE
clause for a db specificPagingQueryProvider
.