Examples of DBObjectType


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

                    return identifierCategory == IdentifierCategory.ALL || identifierCategorySet.contains(identifierCategory);
                }
            }
        }

        DBObjectType genericType = objectType.getGenericType() != objectType ? objectType.getGenericType() : null;
        while (genericType != null) {
            if (containsIdentifier(genericType, identifierType, identifierCategory)) return true;
            genericType = genericType.getGenericType() != genericType ? genericType.getGenericType() : null;
        }
        return false;
    }
View Full Code Here

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

    }

    public void collectVirtualObjectPsiElements(Set<BasePsiElement> bucket, DBObjectType objectType) {
        //if (getElementType().getLookupCache().containsVirtualObject(objectType)) {
            if (getElementType().isVirtualObject()) {
                DBObjectType virtualObjectType = getElementType().getVirtualObjectType();
                if (objectType == virtualObjectType) {
                    bucket.add(this);
                }
            }
            PsiElement child = getFirstChild();
View Full Code Here

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

        this.parentObjectType = parentObjectType;
    }

    @Override
    public boolean accepts(BasePsiElement element) {
        DBObjectType virtualObjectType = element.getElementType().getVirtualObjectType();
        return !(parentObjectType != null && virtualObjectType != null && parentObjectType.matches(virtualObjectType));
    }
View Full Code Here

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

        return !(parentObjectType != null && virtualObjectType != null && parentObjectType.matches(virtualObjectType));
    }

    @Override
    public boolean matches(BasePsiElement basePsiElement) {
        DBObjectType virtualObjectType = basePsiElement.getElementType().getVirtualObjectType();
        return virtualObjectType != null && virtualObjectType.matches(getObjectType());
    }
View Full Code Here

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

        PsiElement psiElement = aliasElement.isReference() ? aliasElement.resolve() : aliasElement;
        if (psiElement instanceof BasePsiElement) {
            BasePsiElement basePsiElement = (BasePsiElement) psiElement;
            BasePsiElement scope = basePsiElement.lookupEnclosingNamedPsiElement();

            DBObjectType objectType = aliasElement.getObjectType();
            ObjectLookupAdapter lookupInput = new ObjectLookupAdapter(aliasElement, objectType);

            BasePsiElement objectPsiElement = lookupInput.findInScope(scope);
            if (objectPsiElement == null) {
                scope = scope.lookupEnclosingSequencePsiElement();
View Full Code Here

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

    @Override
    public boolean matches(BasePsiElement basePsiElement) {
        if (super.matches(basePsiElement)) return true;

        DBObjectType virtualObjectType = basePsiElement.getElementType().getVirtualObjectType();
        return virtualObjectType != null && virtualObjectType.matches(getObjectType());
    }
View Full Code Here

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

    }

    public Filter<DBObject> getFilter(DBObjectType objectType) {
        Filter<DBObject> filter = objectFilterMap.get(objectType);
        if (filter == null) {
            DBObjectType genericObjectType = objectType.getGenericType();
            while (filter == null && genericObjectType != objectType) {
                filter = objectFilterMap.get(genericObjectType);
                objectType = genericObjectType;
                genericObjectType = objectType.getGenericType();
            }
View Full Code Here

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

    protected void initObject(ResultSet resultSet) throws SQLException {
        name = resultSet.getString("SYNONYM_NAME");
        underlyingObject = new DBObjectRef<DBObject>(getConnectionHandler());
        String schemaName = resultSet.getString("OBJECT_OWNER");
        String objectName = resultSet.getString("OBJECT_NAME");
        DBObjectType objectType = DBObjectType.getObjectType(resultSet.getString("OBJECT_TYPE"), DBObjectType.ANY);

        underlyingObject.append(DBObjectType.SCHEMA, schemaName);
        underlyingObject.append(objectType, objectName);
    }
View Full Code Here

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

    }


    public DBObject getObjectForParentType(DBObjectType parentObjectType, String name, boolean lookupHidden) {
        for (DBObjectList objectList : objectLists.values()) {
            DBObjectType objectType = objectList.getObjectType();
            if (objectType.getParents().contains(parentObjectType)) {
                DBObject object = objectList.getObject(name);
                if (object != null) {
                    return object;
                }
            }
        }

        if (lookupHidden) {
            for (DBObjectList objectList : hiddenObjectLists.values()) {
                DBObjectType objectType = objectList.getObjectType();
                if (objectType.getParents().contains(parentObjectType)) {
                    DBObject object = objectList.getObject(name);
                    if (object != null) {
                        return object;
                    }
                }
View Full Code Here

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

        return objectList;
    }

    public void addObjectList(DBObjectList objectList) {
        if (objectList != null) {
            DBObjectType objectType = objectList.getObjectType();
            if (objectList.isHidden()) {
                if (hiddenObjectLists == null) hiddenObjectLists = new THashMap<DBObjectType, DBObjectList<DBObject>>();
                hiddenObjectLists.put(objectType, objectList);
            } else {
                if (objectLists == null) objectLists =  new THashMap<DBObjectType, DBObjectList<DBObject>>();
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.