Class SQLiteStorage


public final class SQLiteStorage extends SQLStorage
  • Constructor Details

  • Method Details

    • init

      public void init()
      Description copied from class: Storage
      Initialize the storage system.
      Specified by:
      init in class Storage
    • save

      public void save(PlayerData playerData)
      Description copied from class: Storage
      Save a player data object to the storage system.
      Specified by:
      save in class Storage
      Parameters:
      playerData - The player data object to save.
    • load

      public PlayerData load(UUID uuid)
      Description copied from class: Storage
      Load a player data object from the storage system.
      Specified by:
      load in class Storage
      Parameters:
      uuid - The UUID of the player.
      Returns:
      The player data object.
    • load

      public PlayerData load(String uuid)
      Description copied from class: Storage
      Load a player data object from the storage system.
      Overrides:
      load in class Storage
      Parameters:
      uuid - The UUID of the player.
      Returns:
      The player data object.
    • importData

      public void importData(String fileName)
      Description copied from class: Storage
      Import player data from a file.
      Specified by:
      importData in class Storage
      Parameters:
      fileName - The name of the file to import from.
    • getTopTotalCookies

      public List<LeaderBoardEntry> getTopTotalCookies(int limit)
      Description copied from class: Storage
      Get a List of the top players by total cookies.
      Specified by:
      getTopTotalCookies in class Storage
      Parameters:
      limit - The maximum number of players to return.
      Returns:
      A List of the top players. PlayerData does not contain achievements and upgrades.
    • getTopCookiesPerClick

      public List<LeaderBoardEntry> getTopCookiesPerClick(int limit)
      Description copied from class: Storage
      Get a List of the top players by cookies per click.
      Specified by:
      getTopCookiesPerClick in class Storage
      Parameters:
      limit - The maximum number of players to return.
      Returns:
      A List of the top players. PlayerData does not contain achievements and upgrades.
    • getTopOfflineCookies

      public List<LeaderBoardEntry> getTopOfflineCookies(int limit)
      Description copied from class: Storage
      Get a List of the top players by offline cookies.
      Specified by:
      getTopOfflineCookies in class Storage
      Parameters:
      limit - The maximum number of players to return.
      Returns:
      A List of the top players. PlayerData does not contain achievements and upgrades.
    • getTopPrestige

      public List<LeaderBoardEntry> getTopPrestige(int limit)
      Description copied from class: Storage
      Get a List of the top players by prestige level.
      Specified by:
      getTopPrestige in class Storage
      Parameters:
      limit - The maximum number of players to return.
      Returns:
      A List of the top players. PlayerData does not contain achievements and upgrades.
    • getTopTotalClicks

      public List<LeaderBoardEntry> getTopTotalClicks(int limit)
      Description copied from class: Storage
      Get a List of the top players by total clicks.
      Specified by:
      getTopTotalClicks in class Storage
      Parameters:
      limit - The maximum number of players to return.
      Returns:
      A List of the top players. PlayerData does not contain achievements and upgrades.
    • saveAllCachedData

      public void saveAllCachedData()
      Description copied from class: Storage
      Save all cached data to the storage system.
      Specified by:
      saveAllCachedData in class Storage