Android-Orma icon indicating copy to clipboard operation
Android-Orma copied to clipboard

Reset where clause in updater

Open sgrekov opened this issue 8 years ago • 2 comments

Is there a way to reset whereClause in <Model>_Updater? I.g. I want reuse updater with different model instances, but where() method alway concatenate to one big WHERE clause

sgrekov avatar Jun 02 '17 21:06 sgrekov

Why and how do you want to reuse *_Updater? Do you have an example code that shows the reuse is useful?

gfx avatar Jun 03 '17 02:06 gfx

We have a different lists of entities, mixed with cached ones and fresh ones, and on some of them we want to execute insert, or on some of them update, and we don't want to create updater for each item.

sgrekov avatar Jun 05 '17 08:06 sgrekov