]> git.ktnx.net Git - mobile-ledger.git/commitdiff
make methods in AccountDAO public
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 13 Feb 2021 08:06:07 +0000 (10:06 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
app/src/main/java/net/ktnx/mobileledger/dao/AccountDAO.java

index a4ed06e4cd91b3fcebeb4ced59eca8cc19f98009..80bab0cc93dbfa0903cfa6f9a310a724fb55349c 100644 (file)
@@ -32,19 +32,20 @@ import java.util.List;
 @Dao
 public abstract class AccountDAO extends BaseDAO<Account> {
     @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<List<Account>> getAll();
+    public abstract LiveData<List<Account>> getAll();
 
     @Query("SELECT * FROM accounts WHERE profile = :profileUUID AND name = :accountName")
-    abstract LiveData<Account> getByName(@NonNull String profileUUID, @NonNull String accountName);
+    public abstract LiveData<Account> getByName(@NonNull String profileUUID,
+                                                @NonNull String accountName);
 
 //    not useful for now
 //    @Transaction