I'm using GreenDao to store a lot of data, coming from a REST service.
A lot of my entities are connected with relations. Everything works great, but tomorrow I have to implement a rocksolid workflow.
When I load my data I have to check if an error occurs. If so, I have to make sure nothing is stored in the SQLite DB.
Normally I would work with transactions and rollback in case of an exception, otherwise commit to the db.
For now I just use insertordelete to save an entity, everytime I created an object.
What would be the way to implement this?