title: Is it possible to write an update query inside JdbcBatchItemWriter() method in SpringBatch
body: <p>I have my ItemWriter code snippet as below </p>
  
  <pre><code>private static final String SYNC_UL_LEADS_UPDATE = "UPDATE SYNC_UL_LEADS  SET SFDC_ID = :SFDC_ID WHERE Email = :Email";
  
  @Bean
  public ItemWriter&lt;SyncULLeads&gt; syncUlLeadsUpdateWriter() {
  
  final DataSource datasource = dataSource;
  
  JdbcBatchItemWriter&lt;SyncULLeads&gt; writer = new JdbcBatchItemWriterBuilder&lt;SyncULLeads&gt;().beanMapped()
                  .dataSource(datasource).sql(SYNC_UL_LEADS_UPDATE)
                  .assertUpdates(true).build();
  
  
  return writer;
      }
  </code></pre>