Merge pull request 'Implementing rank system' (#50) from implementRanks into master
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
59ac233885
@ -20,6 +20,7 @@ public class Schematic {
|
|||||||
private final int schemOwner;
|
private final int schemOwner;
|
||||||
private boolean schemFormat;
|
private boolean schemFormat;
|
||||||
private String item;
|
private String item;
|
||||||
|
private int rank;
|
||||||
private SchematicType schemType;
|
private SchematicType schemType;
|
||||||
|
|
||||||
private Schematic(ResultSet rs) throws SQLException {
|
private Schematic(ResultSet rs) throws SQLException {
|
||||||
@ -27,6 +28,7 @@ public class Schematic {
|
|||||||
this.schemName = rs.getString("SchemName");
|
this.schemName = rs.getString("SchemName");
|
||||||
this.schemOwner = rs.getInt("SchemOwner");
|
this.schemOwner = rs.getInt("SchemOwner");
|
||||||
this.item = rs.getString("Item");
|
this.item = rs.getString("Item");
|
||||||
|
this.rank = rs.getInt("Rank");
|
||||||
this.schemType = SchematicType.fromDB(rs.getString("SchemType"));
|
this.schemType = SchematicType.fromDB(rs.getString("SchemType"));
|
||||||
this.schemFormat = rs.getBoolean("SchemFormat");
|
this.schemFormat = rs.getBoolean("SchemFormat");
|
||||||
}
|
}
|
||||||
@ -134,6 +136,10 @@ public class Schematic {
|
|||||||
return schemOwner;
|
return schemOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getRank(){
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
|
||||||
public String getItem() {
|
public String getItem() {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
@ -143,6 +149,11 @@ public class Schematic {
|
|||||||
updateDB();
|
updateDB();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setRank(int rank){
|
||||||
|
this.rank = rank;
|
||||||
|
SQL.update("UPDATE Schematic SET Rank = ? WHERE SchemID = ?", rank, schemID);
|
||||||
|
}
|
||||||
|
|
||||||
public SchematicType getSchemType() {
|
public SchematicType getSchemType() {
|
||||||
return schemType;
|
return schemType;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren