diff --git a/src/de/steamwar/sql/EventFight.java b/src/de/steamwar/sql/EventFight.java index 4dd8cb1..30811b9 100644 --- a/src/de/steamwar/sql/EventFight.java +++ b/src/de/steamwar/sql/EventFight.java @@ -40,6 +40,7 @@ public class EventFight { private static final SelectStatement byEvent = table.selectFields("eventID"); private static final Statement update = table.update(Table.PRIMARY, "startTime", "spielModus", "map", "teamBlue", "teamRed", "kampfleiter"); private static final Statement create = table.insertFields(true, "eventID", "startTime", "spielModus", "map", "teamBlue", "teamRed", "kampfleiter"); + private static final Statement delete = table.delete(Table.PRIMARY); public static EventFight get(int fightID) { return byId.select(fightID); @@ -103,4 +104,8 @@ public class EventFight { public void update() { update.update(startTime, spielModus, map, teamBlue, teamRed, kampfleiter, fightID); } + + public void delete() { + delete.update(fightID); + } }