beginTransaction(), endTransaction(), and setTransactionSuccessful(). What exactly do they do?

前端 未结 2 580
陌清茗
陌清茗 2021-02-07 08:56

I have to provide synchronization when inserting, querying, updating and deleting items from a database. As far as I understand beginTransaction() and beginTr

2条回答
  •  花落未央
    2021-02-07 08:59

    Off course with Android! If you are working for reliable data manipulation then it is important to use following supported methods.

    BeginTransaction();
    SetTransactionSuccessful();
    EndTransaction(); 
    

    For further see this…In android it is highly important to use transactions when working with databases.

提交回复
热议问题