@Override public Artist updateArtist(Artist artist) { return artistDao.update(artist); }
@Override public void saveArtist(Artist artist) { artistDao.insert(artist); }
@Override public List<Artist> findMatchedArtistsByName(String name) { return artistDao.findMatchedArtistsByName(name); }
@Override public Artist findArtistById(int artistId) { return artistDao.findById(artistId); }
@Override public Collection<Artist> findAllArtists() { return artistDao.findAllArtists(); }
@Override public void deleteArtistWithAlbumsById(int artistId) { // This could be done using a cascade delete on the db albumDao.deleteRecordsByArtistId(artistId); artistDao.deleteById(artistId); }