public void updateMovie(Movie m) throws ServerFailureException, ObjectNotFoundException { try { pm.updateMovie(m); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public void deleteMovie(int id) throws ServerFailureException, ObjectNotFoundException { try { pm.deleteMovie(id); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public void addMovie(Movie m) throws ServerFailureException { try { pm.insertMovie(m); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public Movie getMovieById(int id) throws ServerFailureException, ObjectNotFoundException { try { return pm.getMovieById(id); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public List getAllMovieRatings() throws ServerFailureException { try { return pm.getAllMovieRatings(); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public void deleteAllMovies() throws ServerFailureException { try { pm.deleteAllMovies(); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }
public boolean validateUser(String userId, String password) throws ServerFailureException { try { return pm.validateUser(userId, password); } catch (MapException e) { throw new ServerFailureException(e.getMessage()); } }