public int execute()

in src/main/java/org/apache/commons/dbutils/QueryRunner.java [207:234]


    public int execute(final Connection conn, final String sql, final Object... params) throws SQLException {
        if (conn == null) {
            throw new SQLException("Null connection");
        }

        if (sql == null) {
            throw new SQLException("Null SQL statement");
        }

        CallableStatement stmt = null;
        int rows = 0;

        try {
            stmt = prepareCall(conn, sql);
            this.fillStatement(stmt, params);
            stmt.execute();
            rows = stmt.getUpdateCount();
            retrieveOutParameters(stmt, params);

        } catch (final SQLException e) {
            rethrow(e, sql, params);

        } finally {
            close(stmt);
        }

        return rows;
    }