public class GMTimesTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
GMTimesTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
HashMap<org.bukkit.GameMode,Long> |
getGMTimes(int userId) |
boolean |
removeUserGMTimes(int userId) |
void |
saveGMTimes(int userId,
Map<org.bukkit.GameMode,Long> gamemodeTimes) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public GMTimesTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public boolean removeUserGMTimes(int userId)
userId
- public HashMap<org.bukkit.GameMode,Long> getGMTimes(int userId) throws SQLException
userId
- SQLException
public void saveGMTimes(int userId, Map<org.bukkit.GameMode,Long> gamemodeTimes) throws SQLException
userId
- gamemodeTimes
- SQLException
Copyright © 2017. All rights reserved.