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

Examples of games.stendhal.server.core.engine.db.PostmanDAO.storeMessage()


  public void execute(DBTransaction transaction) throws SQLException {
    CharacterDAO characterdao = DAORegister.get().get(CharacterDAO.class);
    accountName = characterdao.getAccountName(transaction, target);
    if (accountName != null) {
      PostmanDAO postmandao = DAORegister.get().get(PostmanDAO.class);
      postmandao.storeMessage(transaction, source, target, message, messagetype);
    }
  }

  /**
   * checks if account name could be found - which tells if the character whom the message was for, existed
View Full Code Here


            logger.debug("NOT sending a notice to '" + target + "': " + message);
            return;
          }
        }
        logger.info("sending a notice to '" + target + "': " + message);
        postmandao.storeMessage(source, target, message, "N");
      } else {
        logger.error("Not sending a Taxman notice to '" + target
            + ", because the account does not exist. Message': " + message);
      }
    }
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.