Multiple Team Leaders
Dieser Commit ist enthalten in:
Ursprung
75681b2576
Commit
e1c24293bd
@ -28,21 +28,19 @@ public class Team {
|
|||||||
private final int teamId;
|
private final int teamId;
|
||||||
private final String teamKuerzel;
|
private final String teamKuerzel;
|
||||||
private final String teamName;
|
private final String teamName;
|
||||||
private final int teamLeader;
|
|
||||||
private final String teamColor;
|
private final String teamColor;
|
||||||
|
|
||||||
private static final Team pub = new Team(0, "PUB", "Öffentlich", 0, "8");
|
private static final Team pub = new Team(0, "PUB", "Öffentlich", "8");
|
||||||
|
|
||||||
private Team(int teamId, String teamKuerzel, String teamName, int teamLeader, String teamColor){
|
private Team(int teamId, String teamKuerzel, String teamName, String teamColor){
|
||||||
this.teamId = teamId;
|
this.teamId = teamId;
|
||||||
this.teamKuerzel = teamKuerzel;
|
this.teamKuerzel = teamKuerzel;
|
||||||
this.teamName = teamName;
|
this.teamName = teamName;
|
||||||
this.teamLeader = teamLeader;
|
|
||||||
this.teamColor = teamColor;
|
this.teamColor = teamColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Team(ResultSet rs) throws SQLException {
|
private Team(ResultSet rs) throws SQLException {
|
||||||
this(rs.getInt("TeamID"), rs.getString("TeamKuerzel"), rs.getString("TeamName"), rs.getInt("TeamLeader"), rs.getString("TeamColor"));
|
this(rs.getInt("TeamID"), rs.getString("TeamKuerzel"), rs.getString("TeamName"), rs.getString("TeamColor"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Team get(int id){
|
public static Team get(int id){
|
||||||
@ -70,10 +68,6 @@ public class Team {
|
|||||||
return teamName;
|
return teamName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTeamLeader() {
|
|
||||||
return teamLeader;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTeamColor() {
|
public String getTeamColor() {
|
||||||
return teamColor;
|
return teamColor;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren