public class PreparedGetCursor extends PreparedGet<android.database.Cursor>
StorIOSQLite.| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedGetCursor.Builder
Builder for
PreparedGetCursor. |
static class |
PreparedGetCursor.CompleteBuilder
Compile-time safe part of builder for
PreparedGetCursor. |
query, rawQuery, storIOSQLite| Modifier and Type | Method and Description |
|---|---|
rx.Observable<android.database.Cursor> |
asRxObservable()
Creates "Hot"
Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs. |
rx.Single<android.database.Cursor> |
asRxSingle()
Creates
Single which will perform Get Operation lazily when somebody subscribes to it and send result to observer. |
rx.Observable<android.database.Cursor> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
android.database.Cursor |
executeAsBlocking()
Executes Get Operation immediately in current thread.
|
@WorkerThread @NonNull public android.database.Cursor executeAsBlocking()
Notice: This is blocking I/O operation that should not be executed on the Main Thread,
it can cause ANR (Activity Not Responding dialog), block the UI and drop animations frames.
So please, call this method on some background thread. See WorkerThread.
Cursor, can be empty.@NonNull @CheckResult public rx.Observable<android.database.Cursor> createObservable()
asRxObservable().Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs.
First result will be emitted immediately after subscription,
other emissions will occur only if changes of tables from query will occur during lifetime of
the Observable.
StorIOSQLite.defaultScheduler() if not null.
Please don't forget to unsubscribe from this Observable because
it's "Hot" and endless.
Observable which will emit non-null
list with mapped results and will be subscribed to changes of tables from query.@NonNull @CheckResult public rx.Observable<android.database.Cursor> asRxObservable()
Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs.
First result will be emitted immediately after subscription,
other emissions will occur only if changes of tables from query will occur during lifetime of
the Observable.
StorIOSQLite.defaultScheduler() if not null.
Please don't forget to unsubscribe from this Observable because
it's "Hot" and endless.
Observable which will emit non-null
list with mapped results and will be subscribed to changes of tables from query.@NonNull @CheckResult public rx.Single<android.database.Cursor> asRxSingle()
Single which will perform Get Operation lazily when somebody subscribes to it and send result to observer.
StorIOSQLite.defaultScheduler() if not null.Single which will perform Get Operation.
And send result to observer.