Example #1
0
  public void pasEvenementAan(Evenement e) throws ParseException {
    String naam = e.getNaam();
    String subTitel = e.getSubtitel();
    int locatieID = e.getLocatieID();
    String contactPersoon = e.getContactPersoon();
    String organisator = e.getOrganisator();

    String query =
        "UPDATE event SET naam='"
            + naam
            + "', subtitel='"
            + subTitel
            + "',datum='"
            + e.getDatum()
            + "',  locatieid="
            + locatieID
            + " , contactpersoon='"
            + contactPersoon
            + "', organisator='"
            + organisator
            + "'  where eventID='"
            + e.getEventID()
            + "'";
    System.out.println("Query is ***********************" + query);
    try {
      super.addUpdateRecord(query);
      super.closeConnectRst();

    } catch (Exception ex) {
      System.out.println(ex + "het aanpassen van een evenement is mislukt");
    }
  }
Example #2
0
 public void removeEvent(String eventID) {
   String query = "DELETE FROM event where eventID='" + eventID + "'";
   System.out.println(query);
   try {
     super.addUpdateRecord(query);
     super.closeConnection();
   } catch (Exception ex) {
     System.out.println(ex + "het verwijderen van een evenement is niet gelukt.");
   }
 }
Example #3
0
  public void linkProgramma(String eId, int pId) {
    String query = "UPDATE event SET programmaID='" + pId + "' where eventID='" + eId + "'";

    try {
      super.addUpdateRecord(query);
      super.closeConnection();

    } catch (Exception ex) {
      System.out.println(ex + "het linken van programma aan een event is mislukt");
    }
  }