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;
}
Aggregations