public List <Film> viewFilm() { FilmDAO f = FilmDAO.getInstance(); List <Film> films = f.viewFilm(); return(films); }
public static FilmDAO getInstance() { if (filmDAL == null) { filmDAL = new FilmDAO(); } return(filmDAL); }
public void deleteFilm(string titlu) { FilmDAO f = FilmDAO.getInstance(); f.deleteFilm(titlu); }
public void updateBilete(string titlu, int nrBilete) { FilmDAO f = FilmDAO.getInstance(); f.updateFilmBilete(titlu, nrBilete); }
public void updateFilm(string titlu, String premiera, int nrBilete, String dataFinala, string ora) { FilmDAO f = FilmDAO.getInstance(); f.updateFilm(titlu, nrBilete, premiera, ora, dataFinala); }
//gasesc nr de bilete pt a verifica daca mai exista bilete disponibile public int getNrBilete(string titlu) { FilmDAO f = FilmDAO.getInstance(); return(f.getNrBilete(titlu)); }
public void addFilm(string titlu, string regia, string distributia, String premiera, int nrBilete, String dataFinala, string ora) { FilmDAO f = FilmDAO.getInstance(); f.createFilm(titlu, regia, distributia, premiera, ora, nrBilete, dataFinala); }