public class KillsTable extends UserIDTable
columnUserID, usersTable
db, tableName, usingMySQL
Constructor and Description |
---|
KillsTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
addKillsToSessions(Map<UUID,Map<UUID,List<Session>>> map) |
void |
addKillsToSessions(UUID uuid,
Map<Integer,Session> sessions) |
void |
createTable() |
Map<Integer,List<PlayerKill>> |
getAllPlayerKillsBySessionID() |
Map<UUID,List<PlayerKill>> |
getPlayerKills() |
Map<UUID,List<PlayerKill>> |
getPlayerKills(UUID serverUUID) |
void |
removeUser(UUID uuid) |
void |
savePlayerKills(Map<UUID,Map<UUID,List<Session>>> allSessions) |
void |
savePlayerKills(UUID uuid,
int sessionID,
List<PlayerKill> playerKills) |
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public KillsTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public void removeUser(UUID uuid) throws SQLException
removeUser
in class UserIDTable
SQLException
public void savePlayerKills(UUID uuid, int sessionID, List<PlayerKill> playerKills) throws SQLException
SQLException
public void addKillsToSessions(UUID uuid, Map<Integer,Session> sessions) throws SQLException
SQLException
public Map<UUID,List<PlayerKill>> getPlayerKills() throws SQLException
SQLException
public Map<UUID,List<PlayerKill>> getPlayerKills(UUID serverUUID) throws SQLException
SQLException
public void addKillsToSessions(Map<UUID,Map<UUID,List<Session>>> map) throws SQLException
SQLException
public void savePlayerKills(Map<UUID,Map<UUID,List<Session>>> allSessions) throws SQLException
SQLException
public Map<Integer,List<PlayerKill>> getAllPlayerKillsBySessionID() throws SQLException
SQLException
Copyright © 2017. All rights reserved.