greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Asynchronous Interface #8

Open greenrobot opened 12 years ago

greenrobot commented 12 years ago

Would be nice to take load of the main thread and to exploit multi-cores better.

To be decided: The API could be based on Futures or on callback interface. Or a combination?

greenrobot commented 12 years ago

Ideas for updates: DaoSession.runInTxAsync(Runnable) // no callback DaoSession.runInTxAsync(Callable,AsyncTxCallback) AsyncTxCallback.onAsyncTxCompleted(T) AsyncTxCallback.onAsyncTxFailed(Throwable)

DaoSession.runInTxAsync(Callable,AsyncTxCallback) uses Handler to callback in original calling thread

greenrobot commented 12 years ago

Query could be combined with the Loader framework (problem: support library or Honeycomb?)

greenrobot commented 12 years ago

Actually, the approach of Objectify is nice.

greenrobot commented 9 years ago

RxJava binding could be nice too

hindupuravinash commented 9 years ago

Any updates on this @greenrobot ? Would love to see RxAndroid integration here.