Class MySQLStorage


public class MySQLStorage extends SQLStorage
  • Constructor Details

  • Method Details

    • getConnectionPool

      public ConnectionPool getConnectionPool()
    • 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.
    • saveUpgrades

      protected void saveUpgrades(Connection connection, PlayerData playerData) throws SQLException
      Throws:
      SQLException
    • saveAchievements

      protected void saveAchievements(Connection connection, PlayerData playerData) throws SQLException
      Throws:
      SQLException
    • 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.
    • 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.
    • saveAllCachedData

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