Correctif dans le code du modèle de donnée
This commit is contained in:
parent
44a07d9511
commit
588d914feb
@ -18,6 +18,15 @@ public class ModoHistoryElement extends SQLElement {
|
|||||||
setPlayerName(player);
|
setPlayerName(player);
|
||||||
setMessage(message);
|
setMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ModoHistoryElement(int id, String modo, ActionType type, long time, String player, String message) {
|
||||||
|
super("pandacraft_modo_history", id);
|
||||||
|
setModoName(modo);
|
||||||
|
setActionType(type);
|
||||||
|
setTime(time);
|
||||||
|
setPlayerName(player);
|
||||||
|
setMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String[] getValues() {
|
protected String[] getValues() {
|
||||||
|
@ -27,6 +27,7 @@ public class ModoHistoryTable extends SQLTable<ModoHistoryElement> {
|
|||||||
@Override
|
@Override
|
||||||
protected ModoHistoryElement getElementInstance(ResultSet sqlResult) throws SQLException {
|
protected ModoHistoryElement getElementInstance(ResultSet sqlResult) throws SQLException {
|
||||||
ModoHistoryElement el = new ModoHistoryElement(
|
ModoHistoryElement el = new ModoHistoryElement(
|
||||||
|
sqlResult.getInt("id"),
|
||||||
sqlResult.getString("modoName"),
|
sqlResult.getString("modoName"),
|
||||||
ActionType.valueOf(sqlResult.getString("actionType")),
|
ActionType.valueOf(sqlResult.getString("actionType")),
|
||||||
sqlResult.getLong("time"),
|
sqlResult.getLong("time"),
|
||||||
|
@ -23,14 +23,14 @@ public abstract class SQLElement {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public SQLElement(String name) {
|
protected SQLElement(String name) {
|
||||||
this(name, 0);
|
this(name, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
public SQLElement(String name, int id) {
|
protected SQLElement(String name, int id) {
|
||||||
tableName = name;
|
tableName = name;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
saved = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user