android-contentprovider-generator icon indicating copy to clipboard operation
android-contentprovider-generator copied to clipboard

FEATURE REQUEST: Notify multiple URIs for related tables

Open muncescu1 opened this issue 10 years ago • 0 comments

I have the following tables: Person: { "fields": [ { "name": "person_name", "type": "String", "nullable": false } ] } Addresses: { "fields": [ { "name": "person_id", "type": "Long", "nullable": false, "foreignKey": { "table": "Person", "onDelete": "CASCADE" } }, { "name": "address_name", "type": "String", "nullable": false } ] }

I use CursorLoaders for the Person and Addresses table. A person can have multiple addresses. The problem is that if I delete a Person, I need the ContentProvider to also notify the CursorLoader for Adresses. Basically for delete notify besides the URI for Person, the URI for Addresses. This can be expanded to all CRUD operations.

muncescu1 avatar May 27 '15 18:05 muncescu1