Package org.pokenet.server.network

Examples of org.pokenet.server.network.MySqlManager.connect()


  }

  public void run() {
    /*Record Trade on History Table*/
    MySqlManager m_database = new MySqlManager();
    if(m_database.connect(GameServer.getDatabaseHost(), GameServer.getDatabaseUsername(), GameServer.getDatabasePassword())){
      m_database.selectDatabase(GameServer.getDatabaseName());
      while(!m_queries.isEmpty()){
        m_database.query(m_queries.get(0));
        m_queries.remove(0);
      }
View Full Code Here


    if(m_boxes[box].getPokemon(slot) != null) {
      if(m_boxes[box].getPokemon(slot).getDatabaseID() > -1) {
        /* This box exists and the pokemon exists in the database */
        int id = m_boxes[box].getPokemon(slot).getDatabaseID();
        MySqlManager m = new MySqlManager();
        if(m.connect(GameServer.getDatabaseHost(),
            GameServer.getDatabaseUsername(),
            GameServer.getDatabasePassword())) {
          m.selectDatabase(GameServer.getDatabaseName());
          m.query("DELETE FROM pn_pokemon WHERE id='" + id + "'");
          m.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.