turbomanage / storm-gen

Simple ORM for Android SQLite
Apache License 2.0
83 stars 15 forks source link

Inconsistent return type for CRUD operations #48

Closed ccheptea closed 8 years ago

ccheptea commented 8 years ago

SQLiteDao save/insert/update operations have Long as the return type but not delete and deleteAll, which return int. Any specific reason?

turbomanage commented 8 years ago

Yes. It's based on the underlying operations, which return either an ID (Long) of the new or updated item or a count of items deleted (int). If you have a need for alternate behavior, please comment and I'll reopen the issue.