From: Damyan Ivanov Date: Sun, 3 May 2020 09:03:00 +0000 (+0300) Subject: fu: async sql machinery X-Git-Tag: v0.12.0~25 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=4097e258df29d671bb72f89483489388dd5f4aa8;p=mobile-ledger.git fu: async sql machinery --- diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java index a449e466..6aaa62c6 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java @@ -226,6 +226,12 @@ public final class MLDB { @SuppressWarnings("WeakerAccess") abstract public static class CallbackHelper { public void onStart() {} + public abstract boolean onRow(@NonNull Cursor cursor); + public void onNoRows() {} + public void onException(Exception exception) { + Logger.debug("MLDB", "Exception in asynchronous SQL", exception); + } + public void onDone() {} } }