Normally when I do a select query in SQLite in Android I will use a Cursor object from SQLiteDatabase.query()
and then iterate over that cursor, pull out the column data, and use that data as the arguments for the constructors of objects.
However what if I have a more complicated relationship for my objects? For example if I have an object that contains lists of objects, and those objects contain lists of objects as well, and maybe some of them have multiple key combinations.
For example I can't iterate over the Cursor and then call query()
on every single iteration, and then on every iteration on that level, etc, which is basically calling a query per query per query, etc.
Is the accepted approach to use a join query and then try to construct it from one giant dataset?