Package com.agiletec.plugins.jpstats.aps.system.services.stats.model

Examples of com.agiletec.plugins.jpstats.aps.system.services.stats.model.PageStatistic


      stat.setString(2, DateConverter.getFormattedDate(to, "yyyy-MM-dd 23:59:59.999"));
      res = stat.executeQuery();
      IPageManager pageManager = this.getPageManager();
      String langCode = this.getLangManager().getDefaultLang().getCode();
      while (res.next()) {
        PageStatistic statistic = new PageStatistic();
        String code = res.getString(1);
        statistic.setCode(code);
        IPage page = pageManager.getPage(code);
        String descr = (page!=null) ? page.getTitle(langCode) : code;
        statistic.setDescr(descr);
        statistic.setVisits(new Integer(res.getInt(2)));
        visitsStats.add(statistic);
      }
    } catch (Throwable t) {
      processDaoException(t, "Error searching visits for pages", "searchVisitsForPages");
    } finally {
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpstats.aps.system.services.stats.model.PageStatistic

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.