Class LargeStoreQueries
java.lang.Object
com.djrapitops.plan.storage.database.queries.LargeStoreQueries
Static method class for large storage queries.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Executable
storeAllCommonUserInformation
(Collection<BaseUser> ofUsers) Execute a big batch of user information insert statements.static Executable
storeAllGeoInformation
(Map<UUID, List<GeoInfo>> ofUsers) Execute a big batch of GeoInfo insert statements.static Executable
storeAllNicknameData
(Map<ServerUUID, Map<UUID, List<Nickname>>> ofServersAndUsers) Execute a big batch of nickname insert statements.static Executable
storeAllPingData
(Map<UUID, List<Ping>> ofUsers) static Executable
storeAllPlanServerInformation
(Collection<Server> servers) Execute a big batch of server information insert statements.static Executable
storeAllPlanWebUsers
(Collection<User> users) static Executable
storeAllPreferences
(Map<String, String> preferencesByUsername) static Executable
static Executable
static Executable
storeAllTPSData
(Map<ServerUUID, List<TPS>> ofServers) Execute a big batch of TPS insert statements.static Executable
storeAllWorldNames
(Map<ServerUUID, Collection<String>> ofServers) Execute a big batch of world name insert statements.static Executable
storeGroupNames
(List<String> groups) static Executable
storeGroupPermissionRelations
(Map<String, List<String>> groupPermissions) static Executable
storePermissions
(List<String> permissions) static Executable
storePerServerUserInformation
(Map<ServerUUID, List<UserInfo>> ofServers) Execute a big batch of Per server UserInfo insert statements.
-
Method Details
-
storeAllGeoInformation
Execute a big batch of GeoInfo insert statements.- Parameters:
ofUsers
- Map: Player UUID - List of GeoInfo- Returns:
- Executable, use inside a
Transaction
-
storeAllNicknameData
public static Executable storeAllNicknameData(Map<ServerUUID, Map<UUID, List<Nickname>>> ofServersAndUsers) Execute a big batch of nickname insert statements.- Parameters:
ofServersAndUsers
- Multimap: Server UUID - (Player UUID - List of nicknames)- Returns:
- Executable, use inside a
Transaction
-
storeAllPlanWebUsers
-
storeAllPlanServerInformation
Execute a big batch of server information insert statements.- Parameters:
servers
- Collection of Plan Servers.- Returns:
- Executable, use inside a
Transaction
-
storeAllTPSData
Execute a big batch of TPS insert statements.- Parameters:
ofServers
- Map: Server UUID - List of TPS data- Returns:
- Executable, use inside a
Transaction
-
storePerServerUserInformation
Execute a big batch of Per server UserInfo insert statements.- Parameters:
ofServers
- Map: Server UUID - List of user information- Returns:
- Executable, use inside a
Transaction
-
storeAllWorldNames
Execute a big batch of world name insert statements.- Parameters:
ofServers
- Map: Server UUID - Collection of world names- Returns:
- Executable, use inside a
Transaction
-
storeAllCommonUserInformation
Execute a big batch of user information insert statements.- Parameters:
ofUsers
- Collection of BaseUsers- Returns:
- Executable, use inside a
Transaction
-
storeAllSessionsWithoutKillOrWorldData
public static Executable storeAllSessionsWithoutKillOrWorldData(Collection<FinishedSession> sessions) -
storeAllSessionsWithKillAndWorldData
-
storeAllPingData
-
storeGroupNames
-
storePermissions
-
storeGroupPermissionRelations
-
storeAllPreferences
-