public class NicknamesTable extends UserIDTable
columnUserID, usersTable
db, tableName, usingMySQL
Constructor and Description |
---|
NicknamesTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
createTable() |
Map<UUID,Map<UUID,List<String>>> |
getAllNicknames() |
List<String> |
getAllNicknames(UUID uuid)
Get ALL nicknames of the user.
|
String |
getColumnNick() |
List<String> |
getNicknames(UUID uuid)
Get nicknames of the user on THIS server.
|
List<String> |
getNicknames(UUID uuid,
UUID serverUUID)
Get nicknames of the user on a server.
|
void |
insertNicknames(Map<UUID,Map<UUID,List<String>>> allNicknames) |
void |
saveUserName(UUID uuid,
String displayName) |
removeUser
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public NicknamesTable(SQLDB db, boolean usingMySQL)
db
- The databaseusingMySQL
- if the server is using MySQLpublic void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public List<String> getAllNicknames(UUID uuid) throws SQLException
Get's nicknames from other servers as well.
uuid
- UUID of the PlayerSQLException
- when an error at retrieval happenspublic List<String> getNicknames(UUID uuid) throws SQLException
Get's nicknames from other servers as well.
uuid
- UUID of the PlayerSQLException
- when an error at retrieval happenspublic List<String> getNicknames(UUID uuid, UUID serverUUID) throws SQLException
Get's nicknames from other servers as well.
uuid
- UUID of the PlayerserverUUID
- UUID of the serverSQLException
- when an error at retrieval happenspublic void saveUserName(UUID uuid, String displayName) throws SQLException
SQLException
public Map<UUID,Map<UUID,List<String>>> getAllNicknames() throws SQLException
SQLException
public void insertNicknames(Map<UUID,Map<UUID,List<String>>> allNicknames) throws SQLException
SQLException
public String getColumnNick()
Copyright © 2017. All rights reserved.