Examples of executeStatement()


Examples of com.dci.intellij.dbn.database.common.statement.StatementExecutionProcessor.executeStatement()

        return executionProcessor.executeCall(connection, outputReader, arguments);
    }

    protected boolean executeStatement(Connection connection, String loaderId, @Nullable Object... arguments) throws SQLException {
        StatementExecutionProcessor executionProcessor = processors.get(loaderId);
        return executionProcessor.executeStatement(connection, arguments);
    }

    protected void executeUpdate(Connection connection, String loaderId, @Nullable Object... arguments) throws SQLException {
        StatementExecutionProcessor executionProcessor = processors.get(loaderId);
        executionProcessor.executeUpdate(connection, arguments);
View Full Code Here

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

    try {
        conn = DbConnectionFactory.getDataSource().getConnection();
            conn.setAutoCommit(false);
       
      if(DbConnectionFactory.isMySql()){
        dc.executeStatement("SET storage_engine=INNODB", conn);
      }else if(DbConnectionFactory.isMsSql()){
        dc.executeStatement("SET TRANSACTION ISOLATION LEVEL READ COMMITTED;", conn);
      }
     
      for (String query : schemaList) {
View Full Code Here

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

            conn.setAutoCommit(false);
       
      if(DbConnectionFactory.isMySql()){
        dc.executeStatement("SET storage_engine=INNODB", conn);
      }else if(DbConnectionFactory.isMsSql()){
        dc.executeStatement("SET TRANSACTION ISOLATION LEVEL READ COMMITTED;", conn);
      }
     
      for (String query : schemaList) {
                if(!runInSingleTransaction){
                    try {
View Full Code Here

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

     
      for (String query : schemaList) {
                if(!runInSingleTransaction){
                    try {
                        HibernateUtil.startTransaction();
                        dc.executeStatement(query);
                    } catch (Exception e) {
                        Logger.error(this, "Unable to execute query : " + query);
                        HibernateUtil.rollbackTransaction();
                        continue;
                    }
View Full Code Here

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

                        continue;
                    }
                    HibernateUtil.commitTransaction();
                } else {
                    try {
                        dc.executeStatement(query, conn);
                    } catch (SQLException e) {
                        Logger.fatal(this, "Unable to execute SQL upgrade", e);
                        throw new DotDataException(e.getMessage(), e);
                    }
                }
View Full Code Here

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

    dot.setSQL(sql);
    dot.addParam(inode);
    dot.addParam(owner);
    dot.addParam(type);
    dot.addParam(identifier);
    dot.executeStatement(sql);

  }
 
  public static synchronized String generateUuid(){
View Full Code Here

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

        FixAssetsProcessStatus.setTotal(total);
        getModifiedData();
        if(total > 0){
          try{
          HibernateUtil.startTransaction();
          dc.executeStatement(deleteTreesToDelete);
          dc.executeStatement(deleteIdentifiersToDelete);
          FixAssetsProcessStatus.setError(total);
          /*if(DbConnectionFactory.getDBType().equals(DbConnectionFactory.MYSQL)){
            deleteInodesInMySQL(dc);
          }else{
 
View Full Code Here

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

        getModifiedData();
        if(total > 0){
          try{
          HibernateUtil.startTransaction();
          dc.executeStatement(deleteTreesToDelete);
          dc.executeStatement(deleteIdentifiersToDelete);
          FixAssetsProcessStatus.setError(total);
          /*if(DbConnectionFactory.getDBType().equals(DbConnectionFactory.MYSQL)){
            deleteInodesInMySQL(dc);
          }else{
              dc.executeStatement(deleteIdentifiersToDelete);
View Full Code Here

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

      for(String t:triggers){
        dc.executeStatement(t);
      }
    }
    if(UtilMethods.isSet(trigger)){
      dc.executeStatement(trigger);
    }
  }
 
  private void addTriggerToFolder() throws SQLException {
    DotConnect dc = new DotConnect();
View Full Code Here

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

                          "END LOOP;\n" +
                          "END;\n" +
                      "/\n";
      List<String> triggers = SQLUtil.tokenize(oracleTrigger);
      for(String t:triggers){
        dc.executeStatement(t);
      }

    }else
      String checkVersions = "DROP PROCEDURE IF EXISTS checkVersions;\n" +
                      "CREATE PROCEDURE checkVersions(IN ident varchar(36),IN tableName VARCHAR(20),OUT versionsCount INT)\n" +
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.