Package com.dotmarketing.common.db

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


                        dc.addParam(mod_date);
                        dc.addParam(mod_user);
                    }
                    else {
                        dc.addParam(new java.util.Date());
                        dc.addObject(null);
                    }
                    dc.addParam(deleted);
                    dc.addParam(langId);
                    dc.addParam(inode);
                    if(live)
View Full Code Here


                } else if ( DbConnectionFactory.isMySql() ) {
                    dc.addParam( 0 );
                } else if ( DbConnectionFactory.isOracle() ) {
                    dc.addParam( 0 );
                }
                dc.addObject( null );
                dc.addParam( new Date() );
                dc.addParam( new Date() );

                dc.loadResult();
            } else {
View Full Code Here

                      }

                      String action = operationType==ADD_OR_UPDATE_ELEMENT?"Publish":operationType==DELETE_ELEMENT?"Delete":"Added by Browsing";
                      dc.addParam( operationType );

                      dc.addObject( identifier ); //asset
                      dc.addParam( new Date() ); // entered date
                      dc.addObject( 1 ); // language id

                      if(UtilMethods.isSet(operationDate)) {
                        dc.addParam( operationDate );
View Full Code Here

                      String action = operationType==ADD_OR_UPDATE_ELEMENT?"Publish":operationType==DELETE_ELEMENT?"Delete":"Added by Browsing";
                      dc.addParam( operationType );

                      dc.addObject( identifier ); //asset
                      dc.addParam( new Date() ); // entered date
                      dc.addObject( 1 ); // language id

                      if(UtilMethods.isSet(operationDate)) {
                        dc.addParam( operationDate );
                      } else {
                        dc.addObject(null);
View Full Code Here

                      dc.addObject( 1 ); // language id

                      if(UtilMethods.isSet(operationDate)) {
                        dc.addParam( operationDate );
                      } else {
                        dc.addObject(null);
                      }

                      dc.addObject( type );
                      dc.addObject( bundleId );
View Full Code Here

                        dc.addParam( operationDate );
                      } else {
                        dc.addObject(null);
                      }

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

                      dc.loadResult();

View Full Code Here

                      } else {
                        dc.addObject(null);
                      }

                      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

      if(!InodeUtils.isSet(identifier.getInode()))
            return new ArrayList<Contentlet>();

        DotConnect dc = new DotConnect();
        dc.setSQL("SELECT inode FROM contentlet WHERE identifier=? order by mod_date desc");
        dc.addObject(identifier.getId());
        List<Map<String,Object>> list=dc.loadObjectResults();
        ArrayList<String> inodes=new ArrayList<String>(list.size());
        for(Map<String,Object> r : list)
            inodes.add(r.get("inode").toString());
        return findContentlets(inodes);
View Full Code Here

      inode = htmlpage.get("inode");
      identifier = htmlpage.get("identifier");
      try {
          dc.setSQL("Update htmlpage set identifier =? where inode=?");
          dc.addParam(identifier);
          dc.addObject(inode);
          dc.loadResult();
      } catch(Exception ex) {
          Logger.warn(this,"can't update identifier "+identifier+" on htmlpage "+inode+" maybe is orphan");
      }
    }
View Full Code Here

      inode = file_asset.get("inode");
      identifier = file_asset.get("identifier");
      try {
          dc.setSQL("Update file_asset set identifier =? where inode=?");
          dc.addParam(identifier);
          dc.addObject(inode);
          dc.loadResult();
      } catch(Exception ex) {
          Logger.warn(this,"can't update identifier "+identifier+" on file_asset "+inode+" maybe is orphan");
      }
    }
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.