File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring batchupdate

 
mark I thomas
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When Spring does batchupdate on a List of records, if we set batch size = 10, if the 5th records fails in the DAO operation does Spring stop there and roll back the first 4 records ? or does it continue the next 5 records ?

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mark I thomas wrote:When Spring does batchupdate on a List of records, if we set batch size = 10, if the 5th records fails in the DAO operation does Spring stop there and roll back the first 4 records ? or does it continue the next 5 records ?



Using Spring Batch module, when you configure your jobs, you have the ability to configure what happens. If you want it to continue, you can tell it to continue in your configuration, if you want it to stop when you hit an error it can stop if you tell it to in your configuration.

If you aren't using Spring Batch and your question is via Spring JdbcTemplate, then I am not sure.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic