Uses of Class
org.springframework.batch.item.database.builder.JdbcCursorItemReaderBuilder
Package
Description
Builders for database item readers and writers.
-
Uses of JdbcCursorItemReaderBuilder in org.springframework.batch.item.database.builder
Modifier and TypeMethodDescriptionJdbcCursorItemReaderBuilder.beanRowMapper
(Class<T> mappedClass) Creates aBeanPropertyRowMapper
to be used as yourRowMapper
.JdbcCursorItemReaderBuilder.connectionAutoCommit
(boolean connectionAutoCommit) Set whether "autoCommit" should be overridden for the connection used by the cursor.JdbcCursorItemReaderBuilder.currentItemCount
(int currentItemCount) Index for the current item.JdbcCursorItemReaderBuilder.dataSource
(DataSource dataSource) TheDataSource
to read fromJdbcCursorItemReaderBuilder.driverSupportsAbsolute
(boolean driverSupportsAbsolute) Indicates if the JDBC driver supports setting the absolute row on theResultSet
.JdbcCursorItemReaderBuilder.fetchSize
(int fetchSize) A hint to the driver as to how many rows to return with each fetch.JdbcCursorItemReaderBuilder.ignoreWarnings
(boolean ignoreWarnings) JdbcCursorItemReaderBuilder.maxItemCount
(int maxItemCount) Configure the max number of items to be read.JdbcCursorItemReaderBuilder.maxRows
(int maxRows) The max number of rows theResultSet
can containThe name used to calculate the key within theExecutionContext
.JdbcCursorItemReaderBuilder.preparedStatementSetter
(org.springframework.jdbc.core.PreparedStatementSetter preparedStatementSetter) Configures the providedPreparedStatementSetter
to be used to populate any arguments in the SQL query to be executed for the reader.JdbcCursorItemReaderBuilder.queryArguments
(Object... args) Configures aPreparedStatementSetter
that will use the array as the values to be set on the query to be executed for this reader.JdbcCursorItemReaderBuilder.queryArguments
(Object[] args, int[] types) Configures aPreparedStatementSetter
that will use the Object [] as the values to be set on the query to be executed for this reader.JdbcCursorItemReaderBuilder.queryArguments
(List<?> args) Configures aPreparedStatementSetter
that will use the List as the values to be set on the query to be executed for this reader.JdbcCursorItemReaderBuilder.queryTimeout
(int queryTimeout) The time in milliseconds for the query to timeoutTheRowMapper
used to map the results of the cursor to each item.JdbcCursorItemReaderBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.The query to be executed for this readerJdbcCursorItemReaderBuilder.useSharedExtendedConnection
(boolean useSharedExtendedConnection) Indicates that the connection used for the cursor is being used by all other processing, therefor part of the same transaction.JdbcCursorItemReaderBuilder.verifyCursorPosition
(boolean verifyCursorPosition) Indicates if the reader should verify the current position of theResultSet
after being passed to theRowMapper
.