Dieser Commit ist enthalten in:
Ursprung
eef38de3c0
Commit
fdcd81d21e
@ -40,6 +40,7 @@ public class EventFight {
|
|||||||
private static final SelectStatement<EventFight> byEvent = table.selectFields("eventID");
|
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 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 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) {
|
public static EventFight get(int fightID) {
|
||||||
return byId.select(fightID);
|
return byId.select(fightID);
|
||||||
@ -103,4 +104,8 @@ public class EventFight {
|
|||||||
public void update() {
|
public void update() {
|
||||||
update.update(startTime, spielModus, map, teamBlue, teamRed, kampfleiter, fightID);
|
update.update(startTime, spielModus, map, teamBlue, teamRed, kampfleiter, fightID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void delete() {
|
||||||
|
delete.update(fightID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren