Class LargeStoreQueries

java.lang.Object
com.djrapitops.plan.storage.database.queries.LargeStoreQueries

public class LargeStoreQueries extends Object
Static method class for large storage queries.
  • Method Details

    • storeAllGeoInformation

      public static Executable storeAllGeoInformation(Map<UUID,List<GeoInfo>> ofUsers)
      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

      public static Executable storeAllPlanWebUsers(Collection<User> users)
    • storeAllPlanServerInformation

      public static Executable storeAllPlanServerInformation(Collection<Server> servers)
      Execute a big batch of server information insert statements.
      Parameters:
      servers - Collection of Plan Servers.
      Returns:
      Executable, use inside a Transaction
    • storeAllTPSData

      public static Executable storeAllTPSData(Map<ServerUUID,List<TPS>> ofServers)
      Execute a big batch of TPS insert statements.
      Parameters:
      ofServers - Map: Server UUID - List of TPS data
      Returns:
      Executable, use inside a Transaction
    • storePerServerUserInformation

      public static Executable storePerServerUserInformation(Map<ServerUUID,List<UserInfo>> ofServers)
      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

      public static Executable storeAllWorldNames(Map<ServerUUID,Collection<String>> ofServers)
      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

      public static Executable storeAllCommonUserInformation(Collection<BaseUser> ofUsers)
      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

      public static Executable storeAllSessionsWithKillAndWorldData(Collection<FinishedSession> sessions)
    • storeAllPingData

      public static Executable storeAllPingData(Map<UUID,List<Ping>> ofUsers)
    • storeGroupNames

      public static Executable storeGroupNames(List<String> groups)
    • storePermissions

      public static Executable storePermissions(List<String> permissions)
    • storeGroupPermissionRelations

      public static Executable storeGroupPermissionRelations(Map<String,List<String>> groupPermissions)
    • storeAllPreferences

      public static Executable storeAllPreferences(Map<String,String> preferencesByUsername)