public class UsersTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
UsersTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
addUserInformationToUserData(UserData data) |
boolean |
createTable() |
String |
getColumnID() |
Set<UUID> |
getSavedUUIDs() |
int |
getUserId(String uuid) |
int |
getUserId(UUID uuid) |
UUID |
getUserUUID(String userID) |
boolean |
removeUser(String uuid) |
boolean |
removeUser(UUID uuid) |
void |
saveUserDataInformation(UserData data) |
List<UserData> |
saveUserDataInformationBatch(List<UserData> data) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public UsersTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public int getUserId(UUID uuid) throws SQLException
uuid
- SQLException
public int getUserId(String uuid) throws SQLException
uuid
- SQLException
public UUID getUserUUID(String userID) throws SQLException
userID
- SQLException
public Set<UUID> getSavedUUIDs() throws SQLException
SQLException
public boolean removeUser(UUID uuid)
uuid
- public boolean removeUser(String uuid)
uuid
- public void addUserInformationToUserData(UserData data) throws SQLException
data
- SQLException
public void saveUserDataInformation(UserData data) throws SQLException
data
- SQLException
public List<UserData> saveUserDataInformationBatch(List<UserData> data) throws SQLException
data
- SQLException
public String getColumnID()
Copyright © 2017. All rights reserved.