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

Examples of com.dci.intellij.dbn.execution.statement.StatementExecutionInput


            TabInfo tabInfo = resultTabs.findInfo(resultComponent.getComponent());
            if (resultTabs.getTabs().contains(tabInfo)) {
                resultTabs.removeTab(tabInfo);
                if (executionResult instanceof StatementExecutionResult) {
                    StatementExecutionResult statementExecutionResult = (StatementExecutionResult) executionResult;
                    StatementExecutionInput executionInput = statementExecutionResult.getExecutionInput();
                    if (executionInput != null && !executionInput.isDisposed()) {
                        DBLanguageFile file = executionInput.getExecutablePsiElement().getFile();
                        DocumentUtil.refreshEditorAnnotations(file);
                    }
                }
                resultComponent.dispose();
            }
View Full Code Here


            if (executionResult == null) {
                return lenient ?
                        this.executablePsiElement.matches(executablePsiElement) :
                        this.executablePsiElement.equals(executablePsiElement);
            } else {
                StatementExecutionInput executionInput = executionResult.getExecutionInput();
                return lenient || executionInput == null ?
                        this.executablePsiElement.matches(executablePsiElement) :
                        executionInput.getExecutablePsiElement().matches(executablePsiElement);
            }
        }

        return false;
    }
View Full Code Here

        ConnectionHandler activeConnection = getActiveConnection();
        DBSchema currentSchema = getCurrentSchema();
        String originalStatementText = executablePsiElement == null ? executableStatement : executablePsiElement.getText();
        String executeStatementText = executablePsiElement == null ? executableStatement : executablePsiElement.prepareStatementText();

        StatementExecutionInput executionInput = new StatementExecutionInput(originalStatementText, executeStatementText, this);
        boolean continueExecution = true;

        if (executionVariables != null) {
            executeStatementText = executionVariables.prepareStatementText(activeConnection, executeStatementText, false);
            executionInput.setExecuteStatement(executeStatementText);

            if (executionVariables.hasErrors()) {
                executionResult = createErrorExecutionResult(executionInput, "Could not bind all variables. ");
                continueExecution = false;
            }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.execution.statement.StatementExecutionInput

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.