Package com.trulytech.mantis.result

Examples of com.trulytech.mantis.result.DBResult


    logWriter.Debug("get Cache Table " + Key);

    if (isInited) {
      LinkedHashMap map = com.trulytech.mantis.system.Properties.cacheTable;
      if (map == null)
        return new DBResult();
      else {
        DBResult Result = (DBResult) map.get(Key.toLowerCase());
        if (Result == null)
          return new DBResult();
        else
          return Result;
      }
    } else
      return new DBResult();
  }
View Full Code Here


      stmt.setFetchSize(Properties.Fetch_Size);
      stmt.setMaxRows(Properties.MaxRows);
      stmt.setQueryTimeout(Properties.QueryTimeout);

      SQLParser Parser = new SQLParser(stmt, null);
      DBResult Result = Parser
          .QueryExecute(com.trulytech.mantis.system.Properties.Cachekeys
              .getProperty(Key));

      com.trulytech.mantis.system.Properties.cacheTable.put(Key
          .toLowerCase(), Result);

      logWriter.Info("refresh cache table successfully (" + Key + ", total "
          + Result.getResultBuffer().size() + " records) ");
    } catch (Exception e) {
      logWriter.Error("refresh cache table failure (" + Key + ") " + e.toString());

    } finally {
      try {
View Full Code Here

      for (Enumeration enumeration = com.trulytech.mantis.system.Properties.Cachekeys
          .keys(); enumeration.hasMoreElements();) {
        String key = (String) enumeration.nextElement();
        try
        {
        DBResult Result = Parser
            .QueryExecute(com.trulytech.mantis.system.Properties.Cachekeys
                .getProperty(key));

        com.trulytech.mantis.system.Properties.cacheTable.put(key
            .toLowerCase(), Result);
        logWriter.Debug("read " + key + " object successfully (total "
            + Result.getResultBuffer().size() + " records)");
        }
        catch (Exception ex)
        {
          logWriter.Error("refresh key failure " + ex.toString());
        }
View Full Code Here

    HttpSession session = request.getSession();
    session.setAttribute(
        com.trulytech.mantis.system.Properties.Session_Language,
        "EN_US");
    Parser.SQLExecute("insert into msgvalue(value) values ('[_msg]')");
    DBResult Result = Parser.PageExecute("select value from msgvalue");
    request.setAttribute("Result", Result);

    return "internationallist.jsp";

  }
View Full Code Here

TOP

Related Classes of com.trulytech.mantis.result.DBResult

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.