Here is the standard idiom for transactions:
db.beginTransaction();
try {
...
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
I want to add a catch block, and I want to issue a rollback. Is it possible, and at all do I need it?