Package com.liusoft.dlog4j

Examples of com.liusoft.dlog4j.CapacityExceedException


        int file_size = DLOG4JUtils.sizeInKbytes(iTotalSize);
        if (site.getCapacity().getDiaryTotal() > 0
            && site.getCapacity().getDiaryUsed() + file_size > site
                .getCapacity().getDiaryTotal()) {
          // ��Ȼ�������õĿռ�
          throw new CapacityExceedException(site.getCapacity()
              .getDiaryTotal());
        }
        executeNamedUpdate("INC_SITE_UPLOAD_SPACE", Math.max(1, file_size), site.getId());
        //������δ��ȡ�ļ��Ĺ�����Ϣ
        executeNamedUpdate("PICKUP_UPLOAD_FILES", new Object[] {
View Full Code Here


      Query q = ssn.getNamedQuery("LIST_FORUMS");
      q.setInteger(0, obj.getSite().getId());
      List links = q.list();
      if (links.size() >= ConfigDAO.getMaxCatalogCount(obj.getSite()
          .getId()))
        throw new CapacityExceedException(links.size());
      if (links.size() > 1) {
        for (int i = 0; i < links.size(); i++) {
          Orderable lb = (Orderable) links.get(i);
          executeNamedUpdate("UPDATE_FORUM_ORDER", i+1, lb.getId());
        }
View Full Code Here

      ssn.save(mbox);
      // ���¶�ȡ�����б�����˳���������
      List links = findNamedAll("LIST_MUSICBOXES", mbox.getSite().getId());
      if (links.size() >= ConfigDAO.intValue(mbox.getSite().getId(),
          "MAX_MUSICBOX_COUNT", MAX_MUSICBOX_COUNT))
        throw new CapacityExceedException(links.size());
      if (links.size() > 1) {
        for (int i = 0; i < links.size(); i++) {         
          Orderable lb = (Orderable) links.get(i);
          executeNamedUpdate("UPDATE_MUSICBOX_ORDER", (i+1), lb.getId());
        }
View Full Code Here

      beginTransaction();
      ssn.save(obj);
      // ���¶�ȡ�����б�����˳���������
      List albums = findNamedAll("LIST_ALBUM",obj.getSite().getId());
      if (albums.size() >= ConfigDAO.getMaxAlbumCount(obj.getSite().getId()))
        throw new CapacityExceedException(albums.size());
      if (albums.size() > 1) {
        for (int i = 0; i < albums.size(); i++) {
          Orderable lb = (Orderable) albums.get(i);
          executeNamedUpdate("UPDATE_ALBUM_ORDER", i+1, lb.getId());
        }
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.CapacityExceedException

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.