Package com.dotmarketing.common.db

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


          Logger.error(this, e.getMessage(), e);
        }
      }else if(DbConnectionFactory.getDBType().equals(DbConnectionFactory.MSSQL)){
        dc.setSQL(MSCREATESQL);
        try {
          dc.loadResult();
        } catch (DotDataException e) {
          Logger.error(this, e.getMessage(), e);
        }
      }else{
        dc.setSQL(OCLCREATESQL);
View Full Code Here


          Logger.error(this, e.getMessage(), e);
        }
      }else{
        dc.setSQL(OCLCREATESQL);
        try {
          dc.loadResult();
          dc.setSQL(ORACLESEQSQL);
          dc.loadResult();
          dc.setSQL(ORACLETRIGGER);
          dc.loadResult();
        } catch (DotDataException e) {
View Full Code Here

      }else{
        dc.setSQL(OCLCREATESQL);
        try {
          dc.loadResult();
          dc.setSQL(ORACLESEQSQL);
          dc.loadResult();
          dc.setSQL(ORACLETRIGGER);
          dc.loadResult();
        } catch (DotDataException e) {
          Logger.error(this, e.getMessage(), e);
        }     
View Full Code Here

        try {
          dc.loadResult();
          dc.setSQL(ORACLESEQSQL);
          dc.loadResult();
          dc.setSQL(ORACLETRIGGER);
          dc.loadResult();
        } catch (DotDataException e) {
          Logger.error(this, e.getMessage(), e);
        }     
      }
    }finally{
View Full Code Here

    dc.addParam(notification.getMessage());
    dc.addParam(UtilMethods.isSet(notification.getType())?notification.getType().name():NotificationType.GENERIC.name());
    dc.addParam(notification.getLevel().name());
    dc.addParam(notification.getUserId());
    dc.addParam(new Date());
    dc.loadResult();
    CacheLocator.getNewNotificationCache().remove(notification.getUserId());
  }

  public Notification findNotification(String notificationId) throws DotDataException {
      DotConnect dc = new DotConnect();
View Full Code Here

        DotConnect dc = new DotConnect();
        dc.setSQL( "update identifier set asset_name = ? where id = ?" );
        dc.addParam( "system host" );
        dc.addParam( Host.SYSTEM_HOST );

        dc.loadResult();

        //Verify if we already have a contentlet version for the SYSTEM_HOST contentlet
        dc = new DotConnect();
        dc.setSQL( "select identifier from contentlet_version_info where identifier = ?" );
        dc.addParam( Host.SYSTEM_HOST );
View Full Code Here

                }
                dc.addObject( null );
                dc.addParam( new Date() );
                dc.addParam( new Date() );

                dc.loadResult();
            } else {
                throw new DotRuntimeException( "Error querying SYSTEM_HOST contentlet." );
            }
        }
View Full Code Here

    if(!UtilMethods.isSet(userId)) return;

    dc.setSQL("update notification set was_read = "+ DbConnectionFactory.getDBTrue()
        + " where was_read = "+ DbConnectionFactory.getDBFalse()+" and user_id = ?");
    dc.addParam(userId);
    dc.loadResult();
  }
}
View Full Code Here

      String stInode = tree.get("parent");
      String containerInode = tree.get("child");
      dc.setSQL("UPDATE containers set structure_inode = ? where inode = ?");
      dc.addParam(stInode);
      dc.addParam(containerInode);
      dc.loadResult();
    }
  }
 
  private void htmlpageTableChanges() throws SQLException, DotDataException {
    DotConnect dc = new DotConnect();
View Full Code Here

      String templateId = tree.get("parent");
      String htmlpageInode = tree.get("child");
      dc.setSQL("UPDATE htmlpage set template_id = ? where inode = ?");
      dc.addParam(templateId);
      dc.addParam(htmlpageInode);
      dc.loadResult();
    }
    addTriggerToHTMLPage();
  }
 
  private void triggerChanges() throws 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.