Android ORM supporting synchronization with cloud and database cursor interfaces

Is there an Android ORM library that provides a database cursor interface (how to work with adapters, etc.) and supports cloud sync (for any cloud service)?

+3


source to share


1 answer


We have been using an ORM solution for years that works very well in adapters and uses Cursors. We usually use the ORM tool to create a cursor for the results, then do the following to pull the data out of the cursor:

Individual individual = new Individual(cursor);
name = individual.getName();
age = individual.getAge();
... etc ...

or

String name = Individual.getName(cursor);
int age = Individual.getAge(cursor);

      



The tool we're using (I'm the author) is DBTools ( https://github.com/jeffdcamp/dbtools-android ).

0


source







All Articles