File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes Rollback when any error occurrs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Rollback when any error occurrs" Watch "Rollback when any error occurrs" New topic
Author

Rollback when any error occurrs

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
I have transaction of statements .I am settings AutoCommit to false.But when an error occurs for data truncation in 2nd statement ,it not rollback the changes done by other statement .My need is whenever any error occurs ,the whole batch should be rllback.
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Rollback when any error occurrs