public class UserInfoTable extends UserIDTable
Represents plan_user_info.
columnUserID, usersTable
db, tableName, usingMySQL
Constructor and Description |
---|
UserInfoTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
createTable() |
Map<UUID,List<UserInfo>> |
getAllUserInfo() |
Map<UUID,Set<UUID>> |
getSavedUUIDs() |
List<UserInfo> |
getServerUserInfo()
Used for getting info of all users on THIS server.
|
List<UserInfo> |
getServerUserInfo(UUID serverUUID) |
UserInfo |
getUserInfo(UUID uuid) |
UserInfo |
getUserInfo(UUID uuid,
UUID serverUUID) |
void |
insertUserInfo(Map<UUID,List<UserInfo>> allUserInfos) |
boolean |
isRegistered(UUID uuid) |
void |
registerUserInfo(UUID uuid,
long registered) |
void |
updateOpAndBanStatus(UUID uuid,
boolean opped,
boolean banned) |
removeUser
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public UserInfoTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public void registerUserInfo(UUID uuid, long registered) throws SQLException
SQLException
public boolean isRegistered(UUID uuid) throws SQLException
SQLException
public void updateOpAndBanStatus(UUID uuid, boolean opped, boolean banned) throws SQLException
SQLException
public UserInfo getUserInfo(UUID uuid) throws SQLException
SQLException
public UserInfo getUserInfo(UUID uuid, UUID serverUUID) throws SQLException
SQLException
public List<UserInfo> getServerUserInfo() throws SQLException
SQLException
public List<UserInfo> getServerUserInfo(UUID serverUUID) throws SQLException
SQLException
public Map<UUID,List<UserInfo>> getAllUserInfo() throws SQLException
SQLException
public void insertUserInfo(Map<UUID,List<UserInfo>> allUserInfos) throws SQLException
SQLException
public Map<UUID,Set<UUID>> getSavedUUIDs() throws SQLException
SQLException
Copyright © 2017. All rights reserved.