This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes spring batchupdate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring batchupdate" Watch "spring batchupdate" New topic
Author

spring batchupdate

mark I thomas
Ranch Hand

Joined: Apr 07, 2008
Posts: 86
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring batchupdate
 
Similar Threads
SQLexception-duplicate records
batchUpdate problem
Batch Update question
Need clarification on URLyBird 1.3.1 requirement
Alfresco Enterprise Content Management Implementation