Package com.dci.intellij.dbn.object.lookup

Examples of com.dci.intellij.dbn.object.lookup.DBMethodRef


    public DBMethod getMethod() {
        return method == null ? null : method.get();
    }

    public void setMethod(DBMethod method) {
        this.method = new DBMethodRef(method);
    }
View Full Code Here


        connectionId = element.getAttributeValue("connection-id");
        schemaName = element.getAttributeValue("schema");

        Element methodElement = element.getChild("selected-method");
        if (methodElement != null) {
            method = new DBMethodRef();
            method.readConfiguration(methodElement);
        }
    }
View Full Code Here

    public void execute(final MethodExecutionInput executionInput) {
        executionInput.setExecuting(true);
        final DBMethod method = executionInput.getMethod();
        if (method == null) {
            DBMethodRef methodRef = executionInput.getMethodRef();
            MessageUtil.showErrorDialog("Could not resolve " + methodRef.getMethodObjectType().getName() + " \"" + methodRef.getSchemaName() + "." + methodRef.getQualifiedMethodName() + "\".");
        } else {
            final Project project = method.getProject();
            DatabaseExecutionInterface executionInterface = method.getConnectionHandler().getInterfaceProvider().getDatabaseExecutionInterface();
            final MethodExecutionProcessor executionProcessor = executionInterface.createExecutionProcessor(method);
View Full Code Here

            }
        }
    }

    public int compareTo(@NotNull MethodExecutionInput executionInput) {
        DBMethodRef localMethod = getMethodRef();
        DBMethodRef remoteMethod = executionInput.getMethodRef();
        return localMethod.compareTo(remoteMethod);
    }
View Full Code Here

            ConnectionTreeNode connectionNode,
            SchemaTreeNode schemaNode,
            ProgramTreeNode programNode,
            MethodTreeNode methodNode) {
        for (MethodExecutionInput executionInput : executionInputs) {
            DBMethodRef methodIdentifier = executionInput.getMethodRef();
            if (executionInput.getConnectionHandler().getId().equals(connectionNode.getConnectionHandler().getId()) &&
                methodIdentifier.getSchemaName().equalsIgnoreCase(schemaNode.getName()) &&
                methodIdentifier.getMethodName().equalsIgnoreCase(methodNode.getName()) &&
                methodIdentifier.getOverload() == methodNode.getOverload() ) {
                String inputProgramName = methodIdentifier.getProgramName();
                if (programNode == null) {
                    if (inputProgramName == null) {
                        return executionInput;
                    }
                } else {
View Full Code Here

    private MethodExecutionInput getExecutionInput(
            ConnectionTreeNode connectionNode,
            SchemaTreeNode schemaNode,
            MethodTreeNode methodNode) {
        for (MethodExecutionInput executionInput : executionInputs) {
            DBMethodRef methodRef = executionInput.getMethodRef();
            if (executionInput.getConnectionHandler().getId().equals(connectionNode.getConnectionHandler().getId()) &&
                methodRef.getSchemaName().equalsIgnoreCase(schemaNode.getName()) &&
                methodRef.getQualifiedMethodName().equalsIgnoreCase(methodNode.getName()) &&
                methodRef.getOverload() == methodNode.getOverload() ) {

                return executionInput;
            }
        }
        return null;
View Full Code Here

        if (executionInput != null && executionInput.getMethod() != null) {
            headerTitle = executionInput.getMethodRef().getPath();
            methodExecutionForm = new MethodExecutionForm(executionInput, false, true);
            methodArgumentsPanel.add(methodExecutionForm.getComponent(), BorderLayout.CENTER);
            if (touchForm) methodExecutionForm.touch();
            DBMethodRef methodRef = executionInput.getMethodRef();
            methodRef.getPath();
            headerIcon = executionInput.getMethod().getOriginalIcon();
            DBMethod method = methodRef.get();
            if (method != null && getEnvironmentSettings(method.getProject()).getVisibilitySettings().getDialogHeaders().value()) {
                headerBackground = method.getEnvironmentType().getColor();
            }
        }
View Full Code Here

        arguments = container.createSubcontentObjectList(DBObjectType.ARGUMENT, this, ARGUMENTS_LOADER, getSchema(), true);
    }

    @Override
    protected DBObjectRef createRef() {
        return new DBMethodRef(this);
    }
View Full Code Here

        super.readExternal(element);
        compileDependencies = SettingsUtil.getBoolean(element, "compile-dependencies", true);
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(getProject());
        Element methodIdentifierElement = element.getChild("method-identifier");
        if (methodIdentifierElement != null) {
            DBMethodRef methodRef = new DBMethodRef();
            methodRef.readConfiguration(methodIdentifierElement);

            executionInput = executionManager.getExecutionInput(methodRef);
        }

        Element methodIdentifierHistoryElement = element.getChild("method-identifier-history");
        if (methodIdentifierHistoryElement != null) {
            for (Object o : methodIdentifierHistoryElement.getChildren()) {
                methodIdentifierElement = (Element) o;
                DBMethodRef methodRef = new DBMethodRef();
                methodRef.readConfiguration(methodIdentifierElement);

                MethodExecutionInput executionInput = executionManager.getExecutionInput(methodRef);
                methodSelectionHistory.add(executionInput);
            }
        }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.lookup.DBMethodRef

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.