Uses of Class
org.springframework.batch.item.database.builder.JdbcBatchItemWriterBuilder
Package
Description
Builders for database item readers and writers.
-
Uses of JdbcBatchItemWriterBuilder in org.springframework.batch.item.database.builder
Modifier and TypeMethodDescriptionJdbcBatchItemWriterBuilder.assertUpdates
(boolean assertUpdates) If set to true, confirms that every insert results in the update of at least one row in the database.JdbcBatchItemWriterBuilder.beanMapped()
Creates aBeanPropertyItemSqlParameterSourceProvider
to be used as yourItemSqlParameterSourceProvider
.JdbcBatchItemWriterBuilder.columnMapped()
Creates aColumnMapItemPreparedStatementSetter
to be used as yourItemPreparedStatementSetter
.JdbcBatchItemWriterBuilder.dataSource
(DataSource dataSource) Configure theDataSource
to be used.JdbcBatchItemWriterBuilder.itemPreparedStatementSetter
(ItemPreparedStatementSetter<T> itemPreparedStatementSetter) Configures aItemPreparedStatementSetter
for use by the writer.JdbcBatchItemWriterBuilder.itemSqlParameterSourceProvider
(ItemSqlParameterSourceProvider<T> itemSqlParameterSourceProvider) Configures aItemSqlParameterSourceProvider
for use by the writer.JdbcBatchItemWriterBuilder.namedParametersJdbcTemplate
(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations namedParameterJdbcOperations) TheNamedParameterJdbcOperations
instance to use.Set the SQL statement to be used for each item's updates.