public class KillsTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
KillsTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
List<KillData> |
getPlayerKills(int userId) |
boolean |
removeUserKillsAndVictims(int userId) |
void |
savePlayerKills(int userId,
List<KillData> kills) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public KillsTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public boolean removeUserKillsAndVictims(int userId)
userId
- public List<KillData> getPlayerKills(int userId) throws SQLException
userId
- SQLException
public void savePlayerKills(int userId, List<KillData> kills) throws SQLException
userId
- kills
- SQLException
Copyright © 2017. All rights reserved.