use of org.talend.core.repository.model.repositoryObject.MetadataTableRepositoryObject in project tdq-studio-se by Talend.
the class DFTableRepNode method getChildren.
@Override
public List<IRepositoryNode> getChildren() {
List<IRepositoryNode> nodes = new ArrayList<IRepositoryNode>();
MetadataTableRepositoryObject viewObject = (MetadataTableRepositoryObject) this.getObject();
DFColumnFolderRepNode columnFolderNode = new DFColumnFolderRepNode(viewObject, this, ENodeType.TDQ_REPOSITORY_ELEMENT, getProject());
nodes.add(columnFolderNode);
return filterResultsIfAny(nodes);
}
use of org.talend.core.repository.model.repositoryObject.MetadataTableRepositoryObject in project tdq-studio-se by Talend.
the class OverviewResultPage method wapperInput.
/**
* DOC zshen Comment method "wapperInput".
*
* @param indicatorViewList
* @param parentNode
* @return
*/
private List<OverviewIndUIElement> wapperInput(List<ViewIndicator> indicatorViewList, IRepositoryNode parentNode) {
List<OverviewIndUIElement> cataUIEleList = new ArrayList<OverviewIndUIElement>();
List<IRepositoryNode> children = parentNode.getChildren();
for (IRepositoryNode folderNode : children) {
if (folderNode instanceof DBViewFolderRepNode || folderNode instanceof DBCalculationViewFolderRepNode) {
List<IRepositoryNode> tableNodes = folderNode.getChildren();
if (tableNodes == null || tableNodes.isEmpty()) {
continue;
}
// MOD 20120315 klliu&yyin TDQ-2391, avoid getting many times for table nodes.
for (ViewIndicator indicator : indicatorViewList) {
boolean equals = false;
for (IRepositoryNode tableNode : tableNodes) {
MetadataTable table = ((MetadataTableRepositoryObject) tableNode.getObject()).getTable();
String name = table.getName();
String tableName = indicator.getTableName();
// String connUuid = ResourceHelper.getUUID(table);
// String anaUuid = ResourceHelper.getUUID(indicator.getAnalyzedElement());
equals = name.equals(tableName);
if (equals) {
OverviewIndUIElement tableUIEle = new OverviewIndUIElement();
tableUIEle.setNode(tableNode);
tableUIEle.setOverviewIndicator(indicator);
if (DqRepositoryViewService.isComeFromRefrenceProject(getTdDataProvider()) && ColumnSetHelper.getColumns((ColumnSet) table).isEmpty()) {
tableUIEle.setVirtualNode(true);
}
cataUIEleList.add(tableUIEle);
break;
}
}
if (!equals) {
OverviewIndUIElement tableUIEle = new OverviewIndUIElement();
tableUIEle.setOverviewIndicator(indicator);
tableUIEle.setVirtualNode(true);
cataUIEleList.add(tableUIEle);
}
}
}
}
return cataUIEleList;
}
Aggregations