mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
Removed unused methods from album repository
This commit is contained in:
@@ -16,7 +16,6 @@ public interface AlbumDao {
|
||||
@Query("SELECT * FROM album")
|
||||
LiveData<List<Album>> getAll();
|
||||
|
||||
// @Query("SELECT * FROM album WHERE artistId = :artistId;")
|
||||
@Query("SELECT album.* FROM album INNER JOIN album_artist_cross ON album.id = album_artist_cross.album_id AND album_artist_cross.artist_id = :artistId")
|
||||
LiveData<List<Album>> getArtistAlbums(String artistId);
|
||||
|
||||
@@ -26,18 +25,12 @@ public interface AlbumDao {
|
||||
@Query("SELECT * FROM album WHERE title LIKE '%' || :name || '%'")
|
||||
LiveData<List<Album>> searchAlbum(String name);
|
||||
|
||||
@Query("SELECT EXISTS(SELECT * FROM album WHERE id = :id)")
|
||||
boolean exist(String id);
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insert(Album album);
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insertAll(List<Album> albums);
|
||||
|
||||
@Delete
|
||||
void delete(Album album);
|
||||
|
||||
@Query("SELECT title FROM album WHERE title LIKE :query || '%' OR title like '% ' || :query || '%' GROUP BY title LIMIT :number")
|
||||
List<String> searchSuggestions(String query, int number);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user