As with the new version of Raizlabs DBFlow the way of managing databases has been changed.
Right now, after hours of reading/learing I'm pressed to the wall. I need to rewrite two methods from old version of DBFlow (3.0.0-beta5) to new (4.0.0-beta7):
public static void saveAll(Collection<? extends Model> models) {
TransactionManager.getInstance().addTransaction(new SaveModelTransaction<>(ProcessModelInfo.withModels(models)));
}
public static void deleteAll(Collection<? extends Model> models) {
TransactionManager.getInstance().addTransaction(new DeleteModelListTransaction<>(ProcessModelInfo.withModels(models)));
}
I have seen this article: https://github.com/Raizlabs/DBFlow/blob/master/usage2/Migration3Guide.md#transactions-overhaul but still I can't do this. This is my first contact with ORM and I just don't understand it very well