Package com.liusoft.dlog4j.base

Examples of com.liusoft.dlog4j.base.SiteStatInfo


   */
  public SiteStatInfo get_site_stat_info(SiteBean site) {
    if (site == null)
      return null;

    SiteStatInfo ssi = (SiteStatInfo) DLOG_CacheManager.getObjectCached(
        CACHE_KEY, new Integer(site.getId()));

    if (ssi == null) {
      ssi = new SiteStatInfo();

      ssi.setSite(site.getId());
      ssi.setUvThisMonth(VisitStatDAO.getUVThisMonth(site));
      ssi.setUvThisWeek(VisitStatDAO.getUVThisWeek(site));
      ssi.setUvThisYear(VisitStatDAO.getUVThisYear(site));
      ssi.setUvToday(VisitStatDAO.getUVToday(site));
      ssi.setUvTotal(VisitStatDAO.getUVTotal(site));

      DLOG_CacheManager.putObjectCached(CACHE_KEY, new Integer(site
          .getId()), ssi);
    }
    return ssi;
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.base.SiteStatInfo

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.