2

I am developing a spring batch application and using the chunk based processing.

For Reader i am using the org.springframework.batch.item.database.JdbcCursorItemReader class.

When configuring the Reader and specifying the SQL property, how can we use the combination of preparedStatementSetter to set values for an IN clause in the SQL?

My SQL:

select * from Employee where employeeId IN (,,,,,,).

How can I dynamically set the values for IN clause using preparedStatementSetter?

aschipfl
  • 33,626
  • 12
  • 54
  • 99
lryk
  • 63
  • 7

0 Answers0