alexvarboffin / bites-android

Automatically exported from code.google.com/p/bites-android
GNU General Public License v3.0
0 stars 0 forks source link

Add sqlite rollback ability to Provider #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Use sqlite built in functionality to provide transaction rollback.
Probably need to add a new content type to Provider..

------------------------------------------------------------------
SQL:

BEGIN
insert/update etc.
ROLLBACK/COMMIT
------------------------------------------------------------------

This would allow all changes made by an activity to be reversed, this is
useful for multiple table activities like Recipe Edit.

Original issue reported on code.google.com by benny.ca...@gmail.com on 6 May 2008 at 1:18

GoogleCodeExporter commented 8 years ago
Commit/rollback has been implemented in Provider and is now used in RecipeEdit 
and
InventoryEdit.

*Need to add a "lock" so that only the activity that begins a transaction can 
commit
or rollback

Original comment by benny.ca...@gmail.com on 10 May 2008 at 8:22

GoogleCodeExporter commented 8 years ago
Provider lock is implemented, activities should call isLocked() to check if is 
free
before asking for a "Begin" or "Commit/Rollback"

Original comment by benny.ca...@gmail.com on 10 May 2008 at 8:38

GoogleCodeExporter commented 8 years ago
All main activities implement the rollback function now.

Original comment by benny.ca...@gmail.com on 13 May 2008 at 11:11