Android ORM supporting synchronization with cloud and database cursor interfaces
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 to share