Examples of loadObjectResults()


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

    dc.addParam(id);
    dc.addParam(Boolean.FALSE);
    dc.addParam(Boolean.FALSE);
    dc.addParam(Boolean.FALSE);
    try {
      res = dc.loadObjectResults();
    } catch (Exception e) {
      Logger.error(PublisherAPIImpl.class,e.getMessage(),e);
      throw new DotPublisherException("Unable find multi tree:" + e.getMessage(), e);
    }
View Full Code Here

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

      DotConnect dc = new DotConnect();
      dc.setSQL(GETENTRIESBYSTATUS);

      dc.addParam(status.getCode());

      return dc.loadObjectResults();
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }
  }
View Full Code Here

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

  public List<PublishQueueElement> getQueueElements() throws DotPublisherException {
    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(GETENTRIES);
      return mapper.mapRows(dc.loadObjectResults());
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }finally{
      DbConnectionFactory.closeConnection();
View Full Code Here

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

  public Integer countQueueElements() throws DotPublisherException {
    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(COUNTENTRIES);

      return Integer.parseInt(dc.loadObjectResults().get(0).get("count").toString());
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }finally{
      DbConnectionFactory.closeConnection();
View Full Code Here

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

  public List<Map<String,Object>> getQueueElementsGroupByBundleId() throws DotPublisherException {
    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(ETENTRIESGROUPED);
      return dc.loadObjectResults();
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }
  }
View Full Code Here

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

      DotConnect dc = new DotConnect();
      dc.setSQL(ETENTRIESGROUPED);
      dc.setStartRow(offset);
      dc.setMaxRows(limit);

      return dc.loadObjectResults();
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }
  }
View Full Code Here

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

   */
  public Integer countQueueBundleIds() throws DotPublisherException {
    DotConnect dc = new DotConnect();
    dc.setSQL(COUNTBUNDLES);
    try{
      Object total = dc.loadObjectResults().get(0).get("bundle_count");
      return Integer.parseInt(total.toString());
    }
    catch(Exception e){
      Logger.error(PublisherAPIImpl.class, e.getMessage());
      throw new DotPublisherException(e.getMessage());
View Full Code Here

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

    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(ETBUNDLES);
      dc.setMaxRows(limit);
      dc.setStartRow(offest);
      return dc.loadObjectResults();
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }finally{
      DbConnectionFactory.closeConnection();
View Full Code Here

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

      dc.setSQL(SQLGETBUNDLESTOPROCESS);

      dc.addParam(Status.BUNDLE_SENT_SUCCESSFULLY.getCode());
      dc.addParam(Status.PUBLISHING_BUNDLE.getCode());
      return dc.loadObjectResults();
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }finally{
      DbConnectionFactory.closeConnection();
View Full Code Here

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

    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(GETENTRIESBYBUNDLE);
      dc.addParam(bundleId);

      return mapper.mapRows(dc.loadObjectResults());
    }catch(Exception e){
      Logger.error(PublisherUtil.class,e.getMessage(),e);
      throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
    }finally{
      DbConnectionFactory.closeConnection();
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.