|
@@ -276,6 +276,16 @@ public class DataBaseConnector {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void deleteMovie(Movie movie) {
|
|
|
+ try {
|
|
|
+ Statement statement = conn.createStatement();
|
|
|
+ String req = "DELETE FROM Movies WHERE (`id` = '" + movie.id() + "');";
|
|
|
+ statement.execute(req);
|
|
|
+ } catch (SQLException ex) {
|
|
|
+ ex.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public boolean granted(String grantName){
|
|
|
return connRights.contains(grantName);
|
|
|
}
|