Skip to content

Commit c38184a

Browse files
authored
Merge pull request #929 from CruGlobal/cleanup
cleanup
2 parents 5f6307f + 2639623 commit c38184a

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

gto-support-db-async/src/main/java/org/ccci/gto/android/common/db/AsyncDao.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,22 @@ import androidx.concurrent.futures.CallbackToFutureAdapter
55
import com.google.common.util.concurrent.ListenableFuture
66

77
interface AsyncDao : Dao {
8-
@JvmDefault
98
fun <T : Any> getAsync(query: Query<T>) = runAsync { get(query) }
109

11-
@JvmDefault
1210
fun getCursorAsync(query: Query<*>) = runAsync { getCursor(query) }
1311

14-
@JvmDefault
1512
fun <T : Any> findAsync(clazz: Class<T>, vararg key: Any) = runAsync { find(clazz, *key) }
1613

17-
@JvmDefault
1814
fun insertAsync(obj: Any) = insertAsync(obj, SQLiteDatabase.CONFLICT_NONE)
19-
20-
@JvmDefault
2115
fun insertAsync(obj: Any, conflictAlgorithm: Int) = runAsync { insert(obj, conflictAlgorithm) }
2216

23-
@JvmDefault
2417
fun updateAsync(obj: Any) = updateAsync(obj, *getFullProjection(obj.javaClass))
25-
26-
@JvmDefault
2718
fun updateAsync(obj: Any, vararg projection: String) = runAsync { update(obj, *projection) }
2819

29-
@JvmDefault
3020
fun <T : Any> updateAsync(sample: T, where: Expression?, vararg projection: String) =
3121
runAsync { update(sample, where, *projection) }
3222

33-
@JvmDefault
3423
fun updateOrInsertAsync(obj: Any) = updateOrInsertAsync(obj, *getFullProjection(obj.javaClass))
35-
36-
@JvmDefault
3724
fun updateOrInsertAsync(obj: Any, vararg projection: String) = runAsync { updateOrInsert(obj, *projection) }
3825

3926
companion object {

gto-support-db-async/src/main/java/org/ccci/gto/android/common/db/async/AbstractAsyncDao.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)