Examples of DBObjectType


Examples of com.dci.intellij.dbn.object.common.DBObjectType

        return promptSchemaSelection;
    }

    private ObjectTypeEntry getObjectTypeEntry(DBObjectType objectType) {
        for (ObjectTypeEntry objectTypeEntry : getLookupObjectTypes()) {
            DBObjectType visibleObjectType = objectTypeEntry.getObjectType();
            if (visibleObjectType == objectType || objectType.isInheriting(visibleObjectType)) {
                return objectTypeEntry;
            }
        }
        return null;
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

    public void readConfiguration(Element element) throws InvalidDataException {
        Element visibleObjectsElement = element.getChild("lookup-objects");
        for (Object o : visibleObjectsElement.getChildren()) {
            Element child = (Element) o;
            String typeName = child.getAttributeValue("name");
            DBObjectType objectType = DBObjectType.getObjectType(typeName);
            if (objectType != null) {
                boolean enabled = Boolean.parseBoolean(child.getAttributeValue("enabled"));
                ObjectTypeEntry objectTypeEntry = getObjectTypeEntry(objectType);
                objectTypeEntry.setSelected(enabled);
            }
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

                        if (path.hasMoreTokens()) {
                            int idx = token.indexOf("~");
                            if (idx > -1) {
                                String type = token.substring(0, idx);
                                String name = token.substring(idx + 1);
                                DBObjectType objectType = DBObjectType.getObjectType(type);
                                object = object.getChildObject(objectType, name, false);
                            } else {
                                object = object.getChildObject(token, false);
                            }
                        }
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

        return buffer.toString();
    }

    public static String createUrl(DBObject object) {
        StringBuilder buffer = new StringBuilder(object.getRef().getFileName());
        DBObjectType objectType = object.getObjectType();
        buffer.insert(0, "~");
        buffer.insert(0, objectType);
        buffer.append(".");
        buffer.append(getDefaultExtension(object));
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

        if (schema == null) return null;

        DBMethod method;
        Node programNode = getProgramNode();
        Node methodNode = getMethodNode();
        DBObjectType methodObjectType = methodNode.getType();
        if (programNode != null) {
            DBProgram program = schema.getProgram(programNode.getName());
            if (program == null || program.getObjectType() != programNode.getType()) return null;

            method = program.getMethod(methodNode.getName(), overload);
        } else {
            method = schema.getMethod(methodNode.getName(), methodObjectType.getName(), overload);
        }

        if (method == null) return null;

        return method.getArgument(getArgumentNode().getName());
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

    @Nullable
    protected T lookup(@NotNull ConnectionHandler connectionHandler) {
        DBObject object = null;
        for (Node node : nodes) {
            DBObjectType objectType = node.getType();
            String objectName = node.getName();
            if (object == null) {
                object = connectionHandler.getObjectBundle().getObject(objectType, objectName);
            } else {
                object = object.getChildObject(objectType, objectName, true);
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

    }


    private ObjectTypeFilterSetting getObjectTypeEntry(DBObjectType objectType) {
        for (ObjectTypeFilterSetting objectTypeEntry : getSettings()) {
            DBObjectType visibleObjectType = objectTypeEntry.getObjectType();
            if (visibleObjectType == objectType || objectType.isInheriting(visibleObjectType)) {
                return objectTypeEntry;
            }
        }
        return null;
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

    public void readConfiguration(Element element) throws InvalidDataException {
        useMasterSettings.readConfigurationAttribute(element);
        for (Object o : element.getChildren()) {
            Element child = (Element) o;
            String typeName = child.getAttributeValue("name");
            DBObjectType objectType = DBObjectType.getObjectType(typeName);
            if (objectType != null) {
                boolean enabled = Boolean.parseBoolean(child.getAttributeValue("enabled"));
                setVisible(objectType, enabled);
            }
        }
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

        if (schema == null) return null;

        DBMethod method;
        Node programNode = getProgramNode();
        Node methodNode = getMethodNode();
        DBObjectType methodObjectType = methodNode.getType();
        if (programNode != null) {
            DBProgram program = schema.getProgram(programNode.getName());
            if (program == null || program.getObjectType() != programNode.getType()) return null;

            method = program.getMethod(methodNode.getName(), overload);
        } else {
            method = schema.getMethod(methodNode.getName(), methodObjectType.getName(), overload);
        }

        return method != null && method.getObjectType() == methodObjectType ? (T) method : null;
    }
View Full Code Here

Examples of com.dci.intellij.dbn.object.common.DBObjectType

        append(DBObjectType.SCHEMA, schemaName);

        String programTypeName = element.getAttributeValue("program-type");
        if (programTypeName != null) {
            String programName = element.getAttributeValue("program-name");
            DBObjectType programObjectType = DBObjectType.getObjectType(programTypeName);
            append(programObjectType, programName);
        }

        String methodName = element.getAttributeValue("method-name");
        DBObjectType methodObjectType = DBObjectType.getObjectType(element.getAttributeValue("method-type"));

        append(methodObjectType, methodName);

        String overload = element.getAttributeValue("method-overload");
        this.overload = Integer.parseInt(overload == null ? "0" : overload);
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.