title: How to rollback all steps in Spring Batch
body: <p>I created a job which splits my file into small chunks and all these chunks are read in the separated steps. For ex. 3 steps are finished without any errors and the records are commited to the database, but if 4th step fails I need to rollback all records from previous step. <strong>Is it possible to rollback them somehow?</strong></p>
  
  <p><strong>Or perhaps there is a possibility to commit all records only when the last step was finished correctly?</strong> (But here is problem with large files)</p>