Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. List<String> types;
  2. String where = "";
  3. for (String type: types){
  4. where = where + " OR typeColumn= '" + type +"' ";
  5. }
  6. where = " WHERE " + where;
  7.  
  8. String query = "SELECT * FROM table" + where
  9.  
  10. @Query("SELECT * FROM table")
  11. Maybe<List<Table>> getByTypes(List<String> types);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement