Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public void updateInterpret(InterpretDTO obj)
        {
            InterpretDAO iDAO = new InterpretDAO();

            iDAO.updateInterpret(obj, iDAO.getIdFromDb(obj.getName()));
        }
Beispiel #4
0
        public int getInterpretIdByName(string name)
        {
            InterpretDAO iDAO = new InterpretDAO();

            return(iDAO.getIdFromDb(name));
        }