Package com.dci.intellij.dbn.execution.statement.result

Examples of com.dci.intellij.dbn.execution.statement.result.StatementExecutionBasicResult


    public StatementExecutionVariablesBundle getExecutionVariables() {
        return executionVariables;
    }

    protected StatementExecutionResult createExecutionResult(Statement statement, StatementExecutionInput executionInput) throws SQLException {
        StatementExecutionResult executionResult = new StatementExecutionBasicResult(getResultName(), executionInput);
        String message = executablePsiElement.getPresentableText() + " executed successfully";
        int updateCount = statement.getUpdateCount();
        if (updateCount > -1) {
            message = message + ": " + updateCount + (updateCount != 1 ? " rows" : " row") + " affected";
        }
        executionResult.updateExecutionMessage(MessageType.INFO, message);
        executionResult.setExecutionStatus(StatementExecutionResult.STATUS_SUCCESS);
        return executionResult;
    }
View Full Code Here


        executionResult.setExecutionStatus(StatementExecutionResult.STATUS_SUCCESS);
        return executionResult;
    }

    public StatementExecutionResult createErrorExecutionResult(StatementExecutionInput executionInput, String cause) {
        StatementExecutionResult executionResult = new StatementExecutionBasicResult(getResultName(), executionInput);
        executionResult.updateExecutionMessage(MessageType.ERROR, "Could not execute " + getStatementName() + ".", cause);
        executionResult.setExecutionStatus(StatementExecutionResult.STATUS_ERROR);
        return executionResult;
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.execution.statement.result.StatementExecutionBasicResult

Copyright © 2018 www.massapicom. 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.