Guest User

Untitled

a guest
Oct 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @Dao
  2. public interface AddressDao {
  3. @Query("SELECT * FROM address")
  4. List<Address> getAll();
  5.  
  6. @Query("SELECT * FROM address WHERE id IN (:addressIds)")
  7. List<Address> loadAllByIds(int[] addressIds);
  8.  
  9. @Query("SELECT * FROM address WHERE city LIKE :city AND "
  10. + "street LIKE :street LIMIT 1")
  11. Address findByCityAndAddress(String city, String street);
  12.  
  13. @Insert
  14. void insert(Address address);
  15.  
  16. @Delete
  17. void delete(Address address);
  18. }
Add Comment
Please, Sign In to add comment