title: Using Spring Batch JdbcCursorItemReader with NamedParameters
body: <p>The Spring Batch <strong>JdbcCursorItemReader</strong> can accept a <strong>preparedStatementSetter</strong>:</p>
  
  <pre><code>&lt;bean id="reader" class="org.springframework.batch.item.database.JdbcCursorItemReader"&gt;
     &lt;property name="dataSource" ref="..." /&gt;
     &lt;property name="sql" value="SELECT * FROM test WHERE col1 = ?"&gt;
     &lt;property name="rowMapper" ref="..." /&gt;
     &lt;property name="preparedStatementSetter" ref="..." /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>This works well if the sql uses <strong>?</strong> as placeholder(s), as in the above example. However, our pre-existing sql uses named parameters, e.g. SELECT * FROM test WHERE col1 = <strong>:param</strong>
  .</p>
  
  <p>Is there a way to get a JdbcCursorItemReader to work with a <strong>NamedPreparedStatementSetter</strong> rather than a simple PreparedStatementSetter?</p>
  
  <p>Thanks</p>