Examples of DBSynonym


Examples of com.dci.intellij.dbn.object.DBSynonym

                }
            }
        }

        while (underlyingObject != null && underlyingObject instanceof DBSynonym) {
            DBSynonym synonym = (DBSynonym) underlyingObject;
            underlyingObject = synonym.getUnderlyingObject();
        }

        return underlyingObject;
    }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBSynonym

        if (typeName == null) {
            DBObject parentObject = object.getParentObject();

            String typePrefix = "";
            if (object instanceof DBSynonym) {
                DBSynonym synonym = (DBSynonym) object;
                DBObject underlyingObject = synonym.getUnderlyingObject();
                if (underlyingObject != null) {
                    typePrefix = underlyingObject.getTypeName() + " ";
                }
            }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBSynonym

    public DBObject getChildObject(DBObjectType objectType, String name, boolean lookupHidden) {
        if (objectType.isSchemaObject()) {
            DBObject object = super.getChildObject(objectType, name, lookupHidden);
            if (object == null) {
                DBSynonym synonym = (DBSynonym) super.getChildObject(DBObjectType.SYNONYM, name, lookupHidden);
                if (synonym != null) {
                    DBObject underlyingObject = synonym.getUnderlyingObject();
                    if (underlyingObject != null && underlyingObject.isOfType(objectType)) {
                        return synonym;
                    }
                }
            } else {
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBSynonym

    @Nullable
    private DBSchemaObject getObjectFallbackOnSynonym(DBObjectList<? extends DBSchemaObject> objects, String name) {
        DBSchemaObject object = objects.getObject(name);
        if (object == null && DatabaseCompatibilityInterface.getInstance(this).supportsObjectType(DBObjectType.SYNONYM.getTypeId())) {
            DBSynonym synonym = synonyms.getObject(name);
            if (synonym != null) {
                DBObject underlyingObject = synonym.getUnderlyingObject();
                if (underlyingObject != null) {
                    if (underlyingObject.getObjectType() == objects.getObjectType()) {
                        return (DBSchemaObject) underlyingObject;
                    }
                }
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.