Droidparts library has helper-method for execute serial statements in one transaction:
executeStatements(SQLiteDatabase db, ArrayList<String> statements)
But in real life some intermediate inspection can be occur such as:
if(some_check = some_result) { do statement_1 }
else { do statement_2 }
How one can do in these cases?