I'm implementing a PRIVATE ContentProvider
which has few tables with relationships (one to many, many to many). In my current implementation all of the tables are accessible by URIs.
how can I simplify the interface so the inner 'through' tables won't have to be accessed by URIs ?
for example, I have a POSTS table, each POST has many TAGS through the TAGGINGS table.
I want to interact only with the POSTS URI and do the 'private' work inside of the ContentProvider
.
for query
its simple to return a cursor with joined tables, but how do I do this with insert
? is bulkInsert
what I should look into ?