android Programming Glossary: rollback
Android Database Transaction http://stackoverflow.com/questions/8147440/android-database-transaction do the transaction If one table insert failer then need to rollback everything. For example when 3rd table insert the record i got.. when 3rd table insert the record i got error then need to rollback previous two table's insert records also. See my code public.. catch Exception e how to do the rollback e.printStackTrace return n This is the full code public class..
Android Database Transaction http://stackoverflow.com/questions/8147440/android-database-transaction method then that data will go to these 4 table.so How can i do the transaction If one table insert failer then need to rollback everything. For example when 3rd table insert the record i got error then need to rollback previous two table's insert records.. insert failer then need to rollback everything. For example when 3rd table insert the record i got error then need to rollback previous two table's insert records also. See my code public void saveCustomer DBAdapter dbAdapter DBAdapter.getDBAdapterInstance.. initialValues myDataBase.endTransaction myDataBase.setTransactionSuccessful catch Exception e how to do the rollback e.printStackTrace return n This is the full code public class DBAdapter extends SQLiteOpenHelper private static String DB_PATH..
|