1 /*
2 * Copyright 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 // mock rx2 helper
18 @file:JvmName("RxRoom")
19
20 package androidx.room.rxjava3
21
22 import androidx.room.RoomDatabase
23 import androidx.sqlite.SQLiteConnection
24 import io.reactivex.rxjava3.core.Completable
25 import io.reactivex.rxjava3.core.Flowable
26 import io.reactivex.rxjava3.core.Maybe
27 import io.reactivex.rxjava3.core.Observable
28 import io.reactivex.rxjava3.core.Single
29 import java.util.concurrent.Callable
30
31 class Rx3RoomArtifactMarker private constructor()
32
33 @JvmField
34 val NOTHING: Any = Any()
35
createFlowablenull36 fun <T : Any> createFlowable(
37 db: RoomDatabase,
38 inTransaction: Boolean,
39 tableNames: Array<String>,
40 block: (SQLiteConnection) -> T?
41 ): Flowable<T> {
42 TODO()
43 }
44
createObservablenull45 fun <T : Any> createObservable(
46 db: RoomDatabase,
47 inTransaction: Boolean,
48 tableNames: Array<String>,
49 block: (SQLiteConnection) -> T?
50 ): Observable<T> {
51 TODO()
52 }
53
createMaybenull54 fun <T : Any> createMaybe(
55 db: RoomDatabase,
56 isReadOnly: Boolean,
57 inTransaction: Boolean,
58 block: (SQLiteConnection) -> T?
59 ): Maybe<T> {
60 TODO()
61 }
62
createCompletablenull63 fun createCompletable(
64 db: RoomDatabase,
65 isReadOnly: Boolean,
66 inTransaction: Boolean,
67 block: (SQLiteConnection) -> Unit
68 ): Completable {
69 TODO()
70 }
71
createSinglenull72 fun <T : Any> createSingle(
73 db: RoomDatabase,
74 isReadOnly: Boolean,
75 inTransaction: Boolean,
76 block: (SQLiteConnection) -> T?
77 ): Single<T> {
78 TODO()
79 }
80
createFlowablenull81 fun createFlowable(
82 database: RoomDatabase,
83 vararg tableNames: String
84 ): Flowable<Any> {
85 TODO()
86 }
87
createFlowablenull88 fun <T : Any> createFlowable(
89 database: RoomDatabase,
90 inTransaction: Boolean,
91 tableNames: Array<String>,
92 callable: Callable<out T>
93 ): Flowable<T> {
94 TODO()
95 }
96
createObservablenull97 fun createObservable(
98 database: RoomDatabase,
99 vararg tableNames: String
100 ): Observable<Any> {
101 TODO()
102 }
103
createObservablenull104 fun <T : Any> createObservable(
105 database: RoomDatabase,
106 inTransaction: Boolean,
107 tableNames: Array<String>,
108 callable: Callable<out T>
109 ): Observable<T> {
110 TODO()
111 }
112
createSinglenull113 fun <T : Any> createSingle(callable: Callable<out T>): Single<T> {
114 TODO()
115 }
116