Class PendingAchievementDAO

java.lang.Object
games.stendhal.server.core.engine.db.PendingAchievementDAO

public class PendingAchievementDAO extends Object
DAO to gather information on pending achievements
Author:
kymara
  • Constructor Details

    • PendingAchievementDAO

      public PendingAchievementDAO()
  • Method Details

    • deletePendingAchievementDetails

      public void deletePendingAchievementDetails(DBTransaction transaction, String charname) throws SQLException
      Delete used records for a pending achievement for a given player
      Parameters:
      transaction - DBTransaction
      charname - name of player
      Throws:
      SQLException - in case of an database error
    • getPendingAchievementDetails

      public Map<String,​Map<String,​Integer>> getPendingAchievementDetails(DBTransaction transaction, String charname) throws SQLException
      Get details on pending achievements for a given player
      Parameters:
      transaction - DBTransaction
      charname - name of player
      Returns:
      details as param and count
      Throws:
      SQLException - in case of an database error