public class PreparedExecuteSQL
extends java.lang.Object
StorIOSQLite.| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedExecuteSQL.Builder
Builder for
PreparedExecuteSQL. |
static class |
PreparedExecuteSQL.CompleteBuilder
Compile-time safe part of
PreparedExecuteSQL.Builder. |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Object> |
asRxObservable()
Creates
Observable which will perform Execute SQL Operation
and send result to observer. |
rx.Single<java.lang.Object> |
asRxSingle()
Creates
Single which will perform Execute SQL Operation lazily when somebody subscribes to it and send result to observer. |
rx.Observable<java.lang.Object> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
java.lang.Object |
executeAsBlocking()
Executes SQL Operation immediately in current thread.
|
@WorkerThread @NonNull public java.lang.Object 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.
Object, actually Execute SQL should return void,
but we can not return instance of Void so we just return Object
and you don't have to deal with null.@NonNull @CheckResult public rx.Observable<java.lang.Object> createObservable()
asRxObservable().Observable which will perform Execute SQL Operation
and send result to observer.
Returned Observable will be "Cold Observable", which means that it performs
execution of SQL only after subscribing to it. Also, it emits the result once.
StorIOSQLite.defaultScheduler() if not null.Observable which will perform Delete Operation
and send result to observer. Result: just a new instance of Object,
actually Execute SQL should return void,
but we can not return instance of Void so we just return Object
and you don't have to deal with null.@NonNull @CheckResult public rx.Observable<java.lang.Object> asRxObservable()
Observable which will perform Execute SQL Operation
and send result to observer.
Returned Observable will be "Cold Observable", which means that it performs
execution of SQL only after subscribing to it. Also, it emits the result once.
StorIOSQLite.defaultScheduler() if not null.Observable which will perform Delete Operation
and send result to observer. Result: just a new instance of Object,
actually Execute SQL should return void,
but we can not return instance of Void so we just return Object
and you don't have to deal with null.@NonNull @CheckResult public rx.Single<java.lang.Object> asRxSingle()
Single which will perform Execute SQL Operation lazily when somebody subscribes to it and send result to observer.
StorIOSQLite.defaultScheduler() if not null.Single which will perform Execute SQL Operation.
And send result to observer.