public class SessionsTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
SessionsTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
List<SessionData> |
getSessionData(int userId) |
boolean |
removeUserSessions(int userId) |
void |
saveSessionData(int userId,
List<SessionData> sessions) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public SessionsTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public List<SessionData> getSessionData(int userId) throws SQLException
userId
- SQLException
public boolean removeUserSessions(int userId)
userId
- public void saveSessionData(int userId, List<SessionData> sessions) throws SQLException
userId
- sessions
- SQLException
Copyright © 2017. All rights reserved.