public List <String> getAlbumsByInterpret(string interpret) { List <String> albums = new List <String>(); AlbumDAO aDAO = new AlbumDAO(); InterpretDAO iDAO = new InterpretDAO(); albums = aDAO.getAllByInterpret(iDAO.getIdFromDb(interpret)); return(albums); }
public Album(string name, string releaseYear, string genre, string interpret, string coverpath) { InterpretDAO iDAO = new InterpretDAO(); GenreDAO gDAO = new GenreDAO(); this.name = name; this.releaseYear = releaseYear; this.genre = gDAO.getIdFromDb(genre); this.interpret = iDAO.getIdFromDb(interpret); this.coverpath = coverpath; AlbumDTO aDTO = new AlbumDTO(name, releaseYear, this.genre, this.interpret, coverpath); }
public void updateInterpret(InterpretDTO obj) { InterpretDAO iDAO = new InterpretDAO(); iDAO.updateInterpret(obj, iDAO.getIdFromDb(obj.getName())); }
public int getInterpretIdByName(string name) { InterpretDAO iDAO = new InterpretDAO(); return(iDAO.getIdFromDb(name)); }