Search in sources :

Example 11 with MetadataSchemaRepositoryObject

use of org.talend.core.repository.model.repositoryObject.MetadataSchemaRepositoryObject in project tdq-studio-se by Talend.

the class DBTableRepNode method getParentViewObject.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.dq.nodes.DQRepositoryNode#getParentViewObject()
     */
@Override
protected IRepositoryViewObject getParentViewObject() {
    IRepositoryViewObject packageViewObject = null;
    Package parentPackage = PackageHelper.getParentPackage(this.tdTableRepositoryObject.getTdTable());
    if (parentPackage instanceof Catalog) {
        packageViewObject = new MetadataCatalogRepositoryObject(tdTableRepositoryObject.getViewObject(), (Catalog) parentPackage);
    } else if (parentPackage instanceof Schema) {
        packageViewObject = new MetadataSchemaRepositoryObject(tdTableRepositoryObject.getViewObject(), (Schema) parentPackage);
    }
    return packageViewObject;
}
Also used : Schema(orgomg.cwm.resource.relational.Schema) IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) Package(orgomg.cwm.objectmodel.core.Package) MetadataCatalogRepositoryObject(org.talend.core.repository.model.repositoryObject.MetadataCatalogRepositoryObject) Catalog(orgomg.cwm.resource.relational.Catalog) MetadataSchemaRepositoryObject(org.talend.core.repository.model.repositoryObject.MetadataSchemaRepositoryObject)

Aggregations

MetadataSchemaRepositoryObject (org.talend.core.repository.model.repositoryObject.MetadataSchemaRepositoryObject)11 IRepositoryNode (org.talend.repository.model.IRepositoryNode)7 RepositoryNode (org.talend.repository.model.RepositoryNode)7 Schema (orgomg.cwm.resource.relational.Schema)7 MetadataCatalogRepositoryObject (org.talend.core.repository.model.repositoryObject.MetadataCatalogRepositoryObject)6 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)5 Connection (org.talend.core.model.metadata.builder.connection.Connection)3 DBSchemaRepNode (org.talend.dq.nodes.DBSchemaRepNode)3 Catalog (orgomg.cwm.resource.relational.Catalog)3 DatabaseConnection (org.talend.core.model.metadata.builder.connection.DatabaseConnection)2 PackagesAnalyisParameter (org.talend.dq.analysis.parameters.PackagesAnalyisParameter)2 Package (orgomg.cwm.objectmodel.core.Package)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 DoubleClickEvent (org.eclipse.jface.viewers.DoubleClickEvent)1 IDoubleClickListener (org.eclipse.jface.viewers.IDoubleClickListener)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)1 TreeSelection (org.eclipse.jface.viewers.TreeSelection)1 Test (org.junit.Test)1