public class ActionsTable extends UserIDTable
plan_actions contains columns:
columnUserID, usersTable
db, tableName, usingMySQL
Constructor and Description |
---|
ActionsTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
createTable() |
List<Action> |
getActions(UUID uuid)
Used to get all Actions done by a user on this server.
|
Map<UUID,Map<UUID,List<Action>>> |
getAllActions() |
void |
insertAction(UUID uuid,
Action action) |
void |
insertActions(Map<UUID,Map<UUID,List<Action>>> allActions) |
removeUser
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public ActionsTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public void insertAction(UUID uuid, Action action) throws SQLException
SQLException
public List<Action> getActions(UUID uuid) throws SQLException
uuid
- UUID of the playerSQLException
- DB Errorpublic Map<UUID,Map<UUID,List<Action>>> getAllActions() throws SQLException
SQLException
public void insertActions(Map<UUID,Map<UUID,List<Action>>> allActions) throws SQLException
SQLException
Copyright © 2017. All rights reserved.