Package games.stendhal.server.core.engine.db

Examples of games.stendhal.server.core.engine.db.StendhalHallOfFameDAO


    // define additional DAOs
    DAORegister.get().register(CidDAO.class, new CidDAO());
    DAORegister.get().register(PostmanDAO.class, new PostmanDAO());
    DAORegister.get().register(StendhalBuddyDAO.class, new StendhalBuddyDAO());
    DAORegister.get().register(StendhalHallOfFameDAO.class, new StendhalHallOfFameDAO());
    DAORegister.get().register(StendhalKillLogDAO.class, new StendhalKillLogDAO ());
    DAORegister.get().register(StendhalNPCDAO.class, new StendhalNPCDAO());
    DAORegister.get().register(StendhalWebsiteDAO.class, new StendhalWebsiteDAO());
    DAORegister.get().register(AchievementDAO.class, new AchievementDAO());
    DAORegister.get().register(PendingAchievementDAO.class, new PendingAchievementDAO());
View Full Code Here


    this.fametype = fametype;
  }

  @Override
  public void execute(DBTransaction transaction) throws SQLException {
    StendhalHallOfFameDAO dao = DAORegister.get().get(StendhalHallOfFameDAO.class);
    points = dao.getHallOfFamePoints(playername, fametype);
  }
View Full Code Here

    this.add = add;
  }

  @Override
  public void execute(DBTransaction transaction) throws SQLException {
    StendhalHallOfFameDAO dao = DAORegister.get().get(StendhalHallOfFameDAO.class);
    int base = 0;
    if (add) {
      base = dao.getHallOfFamePoints(transaction, playername, fametype);
    }
    dao.setHallOfFamePoints(transaction, playername, fametype, base + points);
  }
View Full Code Here

    this.ascending = ascending;
  }

  @Override
  public void execute(DBTransaction transaction) throws SQLException {
    StendhalHallOfFameDAO dao = DAORegister.get().get(StendhalHallOfFameDAO.class);
    characterNames = dao.getCharactersByFametype(transaction, fametype, max, ascending);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.db.StendhalHallOfFameDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.