mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Removed unused methods from album repository
This commit is contained in:
parent
fc240c273f
commit
0e9ec60195
2 changed files with 34 additions and 139 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue