Uses of Class
org.springframework.batch.item.database.builder.JdbcCursorItemReaderBuilder
Packages that use JdbcCursorItemReaderBuilder
Package
Description
Builders for database item readers and writers.
-
Uses of JdbcCursorItemReaderBuilder in org.springframework.batch.item.database.builder
Methods in org.springframework.batch.item.database.builder that return JdbcCursorItemReaderBuilderModifier and TypeMethodDescriptionJdbcCursorItemReaderBuilder.beanRowMapper(Class<T> mappedClass) Creates aBeanPropertyRowMapperto 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) TheDataSourceto 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 theResultSetcan containThe name used to calculate the key within theExecutionContext.JdbcCursorItemReaderBuilder.preparedStatementSetter(org.springframework.jdbc.core.PreparedStatementSetter preparedStatementSetter) Configures the providedPreparedStatementSetterto be used to populate any arguments in the SQL query to be executed for the reader.JdbcCursorItemReaderBuilder.queryArguments(Object... args) Configures aPreparedStatementSetterthat 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 aPreparedStatementSetterthat will use the Object [] as the values to be set on the query to be executed for this reader.JdbcCursorItemReaderBuilder.queryArguments(List<?> args) Configures aPreparedStatementSetterthat 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 timeoutTheRowMapperused to map the results of the cursor to each item.JdbcCursorItemReaderBuilder.saveState(boolean saveState) Configure if the state of theItemStreamSupportshould be persisted within theExecutionContextfor 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 theResultSetafter being passed to theRowMapper.