From: Damyan Ivanov Date: Sat, 13 Feb 2021 08:06:07 +0000 (+0200) Subject: make methods in AccountDAO public X-Git-Tag: v0.17.0~145 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c0d17c7cbc8bca521b86be06c3b91d3ac8080c76;p=mobile-ledger.git make methods in AccountDAO public --- diff --git a/app/src/main/java/net/ktnx/mobileledger/dao/AccountDAO.java b/app/src/main/java/net/ktnx/mobileledger/dao/AccountDAO.java index a4ed06e4..80bab0cc 100644 --- a/app/src/main/java/net/ktnx/mobileledger/dao/AccountDAO.java +++ b/app/src/main/java/net/ktnx/mobileledger/dao/AccountDAO.java @@ -32,19 +32,20 @@ import java.util.List; @Dao public abstract class AccountDAO extends BaseDAO { @Insert - abstract void insertSync(Account item); + public abstract void insertSync(Account item); @Update - abstract void updateSync(Account item); + public abstract void updateSync(Account item); @Delete - abstract void deleteSync(Account item); + public abstract void deleteSync(Account item); @Query("SELECT * FROM accounts") - abstract LiveData> getAll(); + public abstract LiveData> getAll(); @Query("SELECT * FROM accounts WHERE profile = :profileUUID AND name = :accountName") - abstract LiveData getByName(@NonNull String profileUUID, @NonNull String accountName); + public abstract LiveData getByName(@NonNull String profileUUID, + @NonNull String accountName); // not useful for now // @Transaction