]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/dao/ProfileDAO.java
working backup and restore of configuration settings
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / dao / ProfileDAO.java
index 77697230d60fd0e97d4c6d3bd9b756cdb54f5023..e61e1fb5a5af718764b2bae12a562c5cd54ebd7a 100644 (file)
@@ -72,6 +72,12 @@ public abstract class ProfileDAO extends BaseDAO<Profile> {
     @Query("SELECT * FROM profiles LIMIT 1")
     public abstract Profile getAnySync();
 
+    @Query("SELECT * FROM profiles WHERE uuid=:uuid")
+    public abstract LiveData<Profile> getByUuid(String uuid);
+
+    @Query("SELECT * FROM profiles WHERE uuid=:uuid")
+    public abstract Profile getByUuidSync(String uuid);
+
     @Query("SELECT MAX(order_no) FROM profiles")
     public abstract int getProfileCountSync();
     public void updateOrderSync(List<Profile> list) {