Package com.dotmarketing.common.db

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


    dc.addParam(UtilMethods.isSet(bundle.getName())?bundle.getName():bundle.getId());
    dc.addParam(bundle.getPublishDate());
    dc.addParam(bundle.getExpireDate());
    dc.addParam(bundle.getOwner());
    dc.addParam(bundle.isForcePush());
    dc.loadResult();
  }

  @Override
  public void saveBundleEnvironment(Bundle bundle, Environment e) throws DotDataException {
    DotConnect dc = new DotConnect();
View Full Code Here


    DotConnect dc = new DotConnect();
    dc.setSQL(INSERT_BUNDLE_ENVIRONMENT);
    dc.addParam(UUID.randomUUID().toString());
    dc.addParam(bundle.getId());
    dc.addParam(e.getId());
    dc.loadResult();
  }

    @Override
    public List<Bundle> findUnsendBundles ( String userId ) throws DotDataException {
        return findUnsendBundles( userId, -1, 0 );
View Full Code Here

    DotConnect dc = new DotConnect();
    dc.setSQL(INSERT_ENVIRONMENT);
    dc.addParam(environment.getId());
    dc.addParam(environment.getName());
    dc.addParam(environment.getPushToAll().booleanValue());
    dc.loadResult();

  }

  @Override
  public void update(Environment environment) throws DotDataException {
View Full Code Here

                      }

                      dc.addObject( type );
                      dc.addObject( bundleId );

                      dc.loadResult();


                      PushPublishLogger.log(getClass(), "Asset added to Push Publish Queue. Action: "+action+", Asset Type: " + type + ", Asset Id: " + identifier, bundleId, user);
                  }
View Full Code Here

      dc.addParam(last_try);
      dc.addParam(num_of_tries);
      dc.addParam(in_error);
      dc.addParam(last_results);
      dc.addParam(id);
      dc.loadResult();

      if(localTransaction){
                HibernateUtil.commitTransaction();
            }
    }catch(Exception e){
View Full Code Here

    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(DELETEELEMENTFROMQUEUESQL);
      dc.addParam(identifier);
      dc.loadResult();

      if(localTransaction) {
          HibernateUtil.commitTransaction();
      }
    }catch(Exception e){
View Full Code Here

        DotConnect dotConnect = new DotConnect();
        for ( Template template : templates ) {
            //Delete the relationship between templates and containers
            dotConnect.setSQL( "delete from template_containers where template_id = ?" );
            dotConnect.addParam( template.getIdentifier() );
            dotConnect.loadResult();

            templateAPI.delete( template, user, false );
        }

        //Delete the containers
View Full Code Here

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

      if(localTransaction) {
          HibernateUtil.commitTransaction();
      }
    }catch(Exception e){
View Full Code Here

    }

    try{
      DotConnect dc = new DotConnect();
      dc.setSQL(DELETEALLELEMENTFROMQUEUESQL);
      dc.loadResult();

      if(localTransaction) {
                HibernateUtil.commitTransaction();
            }
    }catch(Exception e){
View Full Code Here

            if(UtilMethods.isSet(identifier) && !identifier.equals(lastId)) {
                lastId=identifier;
                dc.setSQL("update "+versionTable+" set live_inode=? where identifier=?");
                dc.addParam(inode);
                dc.addParam(identifier);
                dc.loadResult();
            }
        }
    }

    protected void dropOldAttributes() throws DotDataException, SQLException {
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.