From 76815232528177dbc436505b8024fdbd0613a7f1 Mon Sep 17 00:00:00 2001 From: Javier Varona Date: Wed, 17 Oct 2018 22:15:19 -0400 Subject: [PATCH] - Added query to get address --- .../java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java b/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java index f814f56..aaef76b 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java +++ b/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java @@ -22,6 +22,9 @@ public interface BitcoinAddressDao { @Query("SELECT COUNT(*) FROM bitcoin_address ba WHERE ba.address = :address") Boolean addressExists(String address); + @Query("SELECT * FROM bitcoin_address ba WHERE ba.address = :address") + BitcoinAddress getdadress(String address); + @Insert(onConflict = OnConflictStrategy.REPLACE) public long[] insertBitcoinAddresses(BitcoinAddress... addresses); }