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 @file:JvmName("GuavaRoom")
18 @file:Suppress("UNUSED_PARAMETER")
19 
20 package androidx.room.guava
21 
22 import android.os.CancellationSignal
23 import androidx.room.RoomDatabase
24 import androidx.room.RoomSQLiteQuery
25 import androidx.sqlite.SQLiteConnection
26 import androidx.sqlite.db.SupportSQLiteQuery
27 import com.google.common.util.concurrent.ListenableFuture
28 import java.util.concurrent.Callable
29 import java.util.concurrent.Executor
30 
31 class GuavaRoomArtifactMarker private constructor()
32 
createListenableFuturenull33 fun <T> createListenableFuture(
34         db: RoomDatabase,
35         isReadOnly: Boolean,
36         inTransaction: Boolean,
37         block: (SQLiteConnection) -> T
38 ): ListenableFuture<T> {
39     TODO()
40 }
41 
createListenableFuturenull42 fun <T> createListenableFuture(
43     roomDatabase: RoomDatabase,
44     inTransaction: Boolean,
45     callable: Callable<T>,
46     query: RoomSQLiteQuery,
47     releaseQuery: Boolean
48 ): ListenableFuture<T> {
49     TODO()
50 }
51 
createListenableFuturenull52 fun <T> createListenableFuture(
53     roomDatabase: RoomDatabase,
54     inTransaction: Boolean,
55     callable: Callable<T>,
56     query: RoomSQLiteQuery,
57     releaseQuery: Boolean,
58     cancellationSignal: CancellationSignal?
59 ): ListenableFuture<T> {
60     TODO()
61 }
62 
createListenableFuturenull63 fun <T> createListenableFuture(
64     roomDatabase: RoomDatabase,
65     inTransaction: Boolean,
66     callable: Callable<T>,
67     query: SupportSQLiteQuery,
68     releaseQuery: Boolean,
69     cancellationSignal: CancellationSignal?
70 ): ListenableFuture<T> {
71     TODO()
72 }
73 
createListenableFuturenull74 fun <T> createListenableFuture(
75     executor: Executor,
76     callable: Callable<T>,
77     query: SupportSQLiteQuery,
78     releaseQuery: Boolean,
79     cancellationSignal: CancellationSignal?
80 ): ListenableFuture<T> {
81     TODO()
82 }
83 
createListenableFuturenull84 fun <T> createListenableFuture(
85     roomDatabase: RoomDatabase,
86     inTransaction: Boolean,
87     callable: Callable<T>
88 ): ListenableFuture<T> {
89     TODO()
90 }