Package com.liusoft.dlog4j.base

Examples of com.liusoft.dlog4j.base.DlogStatInfo


   */
  public DlogStatInfo get_dlog_stat_info(SiteBean site){
    if(site==null)
      return null;
    String nSite = "stat_info_"+site.getId();
    DlogStatInfo dsi = (DlogStatInfo)DLOG_CacheManager.getObjectCached(CACHE_KEY, nSite);
    if(dsi==null){
      dsi = DlogDAO.getDlogStatInfo(site.getId());
      DLOG_CacheManager.putObjectCached(CACHE_KEY, nSite, dsi);
    }
    return dsi;
View Full Code Here


   * ����ָ����վ��ͳ����Ϣ,���siteֵС��0��ȡ������վ
   * @param site
   * @return
   */
  public static DlogStatInfo getDlogStatInfo(int site){
    DlogStatInfo count = new DlogStatInfo();
    //============== �ռ���
    count.setArticle(DiaryDAO.getDiaryCount(site));
    //============== �ռ�������
    count.setArticleReply(DiaryDAO.getDiaryReplyCount(site));
    //============== ��Ƭ��
    count.setPhoto(PhotoDAO.getPhotoCount(site));
    //============== ��Ƭ������
    count.setPhotoReply(PhotoDAO.getPhotoReplyCount(site));
    //============== ��̳������
    count.setTopic(BBSTopicDAO.getTopicCount(site));
    //============== ��̳������
    count.setTopicReply(BBSReplyDAO.getReplyCount(site));
    //============== ע���û���
    count.setUser(UserDAO.getUserCount(site));
    //============== ע����վ��
    count.setSite(SiteDAO.getSiteCount());
    return count;
  }
View Full Code Here

TOP

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

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.