public class NicknamesTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
NicknamesTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
List<String> |
getNicknames(int userId) |
boolean |
removeUserNicknames(int userId) |
void |
saveNickList(int userId,
Set<String> names,
String lastNick) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public NicknamesTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public boolean removeUserNicknames(int userId)
userId
- public List<String> getNicknames(int userId) throws SQLException
userId
- SQLException
public void saveNickList(int userId, Set<String> names, String lastNick) throws SQLException
userId
- names
- lastNick
- SQLException
Copyright © 2017. All rights reserved.