public class DataStoreQueries
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Executable |
insertWorldName(java.util.UUID serverUUID,
java.lang.String worldName) |
static Executable |
registerBaseUser(java.util.UUID playerUUID,
long registered,
java.lang.String playerName)
Store a BaseUser for the player in the database.
|
static Executable |
registerUserInfo(java.util.UUID playerUUID,
long registered,
java.util.UUID serverUUID)
Store UserInfo about a player on a server in the database.
|
static Executable |
storeGeoInfo(java.util.UUID playerUUID,
GeoInfo geoInfo)
Store player's Geo Information in the database.
|
static Executable |
storePing(java.util.UUID playerUUID,
java.util.UUID serverUUID,
Ping ping)
Store Ping data of a player on a server.
|
static Executable |
storePlayerNickname(java.util.UUID playerUUID,
Nickname nickname)
Store nickname information of a player on a server.
|
static Executable |
storeSession(Session session)
Store a finished session in the database.
|
static Executable |
storeTPS(java.util.UUID serverUUID,
TPS tps)
Store TPS data of a server.
|
static Executable |
storeUsedCommandInformation(java.util.UUID serverUUID,
java.lang.String commandName)
Store the used command in the database.
|
static Executable |
updatePlayerName(java.util.UUID playerUUID,
java.lang.String playerName)
Update player's name in the database in case they have changed it.
|
public static Executable storeUsedCommandInformation(java.util.UUID serverUUID, java.lang.String commandName)
serverUUID
- UUID of the Plan server.commandName
- Name of the command that was used.Transaction
public static Executable storeSession(Session session)
session
- Session, of which Session.endSession(long)
has been called.Transaction
java.lang.IllegalArgumentException
- If Session.endSession(long)
has not yet been called.public static Executable insertWorldName(java.util.UUID serverUUID, java.lang.String worldName)
public static Executable storeGeoInfo(java.util.UUID playerUUID, GeoInfo geoInfo)
playerUUID
- UUID of the player.geoInfo
- GeoInfo of the player.Transaction
public static Executable registerBaseUser(java.util.UUID playerUUID, long registered, java.lang.String playerName)
playerUUID
- UUID of the player.registered
- Time the player registered on the server for the first time.playerName
- Name of the player.Transaction
public static Executable updatePlayerName(java.util.UUID playerUUID, java.lang.String playerName)
playerUUID
- UUID of the player.playerName
- Name of the player.Transaction
public static Executable registerUserInfo(java.util.UUID playerUUID, long registered, java.util.UUID serverUUID)
playerUUID
- UUID of the player.registered
- Time the player registered on the server.serverUUID
- UUID of the Plan server.Transaction
public static Executable storePing(java.util.UUID playerUUID, java.util.UUID serverUUID, Ping ping)
playerUUID
- UUID of the player.serverUUID
- UUID of the Plan server.ping
- Ping data entryTransaction
public static Executable storeTPS(java.util.UUID serverUUID, TPS tps)
serverUUID
- UUID of the Plan server.tps
- TPS data entryTransaction
public static Executable storePlayerNickname(java.util.UUID playerUUID, Nickname nickname)
playerUUID
- UUID of the player.nickname
- Nickname information.Transaction