public class PreparedGetObject<T> extends PreparedGet<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedGetObject.Builder<T>
Builder for
PreparedGetObject Operation. |
static class |
PreparedGetObject.CompleteBuilder<T>
Compile-safe part of
PreparedGetObject.Builder. |
query, rawQuery, storIOSQLite| Modifier and Type | Method and Description |
|---|---|
rx.Observable<T> |
asRxObservable()
Creates "Hot"
Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs. |
rx.Single<T> |
asRxSingle()
Creates
Single which will perform Get Operation lazily when somebody subscribes to it and send result to observer. |
rx.Observable<T> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
T |
executeAsBlocking()
Executes Get Operation immediately in current thread.
|
@Nullable @WorkerThread public T 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.
null, if no items are found.@NonNull @CheckResult public rx.Observable<T> 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 single object
(can be null, if no items are found)
with mapped results and will be subscribed to changes of tables from query@NonNull @CheckResult public rx.Observable<T> 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 single object
(can be null, if no items are found)
with mapped results and will be subscribed to changes of tables from query@NonNull @CheckResult public rx.Single<T> 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.