I have a file with records.
I have to develop a spring batch program which will read the file and DELETE the same records from the database table.
Is it possible to run delete query through ItemWriter ???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no difference between update or delete operations, only the sql changes; so simple answer to your question will be yes.
The following code fragment may help for basic needs assuming that you are deleting from the Book table.