Unanswered: Handle Exceptions of database importing from dump
I'm restoring my MySQL database from java code.
I use Process for running a batch file and i need to roleback if there were any exceptions.
How can I track the exceptions?
Is there any way doing it with jdbc "Statements"?
If you're not going to use stored procedures, then use transactions, savepoints, and rollbacks. It'll probably involve lots of Java if test cases though to see if the statements have executed properly.