Examples of loadResults()


Examples of com.dotmarketing.common.db.DotConnect.loadResults()

      if (limit != 0) {
        dc.setStartRow(startRow);
        dc.setMaxRows(limit);
      }
     
      List<Map<String, String>> list = dc.loadResults();
      List<Permissionable> assetsList = new ArrayList<Permissionable>();
      WebAsset permissionable;
     
      PermissionAPI permAPI = APILocator.getPermissionAPI();
     
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

          dc = new DotConnect();
          dc.setSQL(sb.toString());
          startRow += limit;
          dc.setStartRow(startRow);
          dc.setMaxRows(limit);
          list = dc.loadResults();
        }
      }
     
      return assetsList.size();
    } catch (Exception e) {
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

        dc.setSQL(sb.toString());

        dc.setStartRow(internalOffset);
        dc.setMaxRows(internalLimit);
       
        List<Map<String, String>> list = dc.loadResults();
        List<Permissionable> assetsList = new ArrayList<Permissionable>();
        WebAsset permissionable;
       
        for (Map<String, String> map: list) {
          permissionable = (WebAsset) c.newInstance();
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

      if (limit != 0) {
        dc.setStartRow(startRow);
        dc.setMaxRows(limit);
      }
     
      List<Map<String, String>> list = dc.loadResults();
      List<Permissionable> assetsList = new ArrayList<Permissionable>();
      WebAsset permissionable;
     
      PermissionAPI permAPI = APILocator.getPermissionAPI();
     
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

          dc = new DotConnect();
          dc.setSQL(sb.toString());
          startRow += limit;
          dc.setStartRow(startRow);
          dc.setMaxRows(limit);
          list = dc.loadResults();
        }
      }
     
      return assetsList.size();
     
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

        dc.setSQL(sb.toString());

        dc.setStartRow(internalOffset);
        dc.setMaxRows(internalLimit);
       
        List<Map<String, String>> list = dc.loadResults();
        List<Permissionable> assetsList = new ArrayList<Permissionable>();
        WebAsset permissionable;
       
        for (Map<String, String> map: list) {
          permissionable = (WebAsset) c.newInstance();
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

  protected Object loadField(String inode, String fieldContentlet) throws DotDataException {
      String sql="SELECT "+fieldContentlet+" FROM contentlet WHERE inode=?";
      DotConnect dc=new DotConnect();
      dc.setSQL(sql);
      dc.addParam(inode);
      ArrayList results=dc.loadResults();
      if(results.size()==0) return null;
      Map m=(Map)results.get(0);
      return m.get(fieldContentlet);
  }
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

        sql.append(" where id in (select identifier from contentlet where structure_inode = ?)");
        DotConnect dc = new DotConnect();
        dc.setSQL(sql.toString());
        dc.addParam(APILocator.getHostAPI().findSystemHost().getIdentifier());
        dc.addParam(structureInode);
        dc.loadResults();
        //we could do a select here to figure out exactly which guys to evict
        cc.clearCache();
        CacheLocator.getIdentifierCache().clearCache();
  }
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

  @Override
  protected long contentletCount() throws DotDataException {
      DotConnect dc = new DotConnect();
        dc.setSQL("select count(*) as count from contentlet");
        List<Map<String,String>> results = dc.loadResults();
        long count = Long.parseLong(results.get(0).get("count"));
        return count;
  }

  @Override
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadResults()

            dc.setSQL("select count(*) as count from (select distinct identifier from contentlet)");
        }else{
            dc.setSQL("select count(*) as count from (select distinct identifier from contentlet) as t");
        }

        List<Map<String,String>> results = dc.loadResults();
        long count = Long.parseLong(results.get(0).get("count"));
        return count;
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.