Add Fight Delete
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2022-12-24 14:38:17 +01:00
Ursprung eef38de3c0
Commit fdcd81d21e

Datei anzeigen

@ -40,6 +40,7 @@ public class EventFight {
private static final SelectStatement<EventFight> 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);
}
}