use of org.talend.cwm.relational.TdView in project tdq-studio-se by Talend.
the class DBViewFolderRepNode method getChildrenCount.
/*
* ADD gdbu 2011-7-25 bug : 23220
*
* children count : only read from the file
*/
private int getChildrenCount() {
List<TdView> tables = new ArrayList<TdView>();
IRepositoryViewObject object = this.getParent().getObject();
if (object instanceof MetadataCatalogRepositoryObject) {
catalog = ((MetadataCatalogRepositoryObject) object).getCatalog();
tables = PackageHelper.getViews(catalog);
} else {
schema = ((MetadataSchemaRepositoryObject) object).getSchema();
tables = PackageHelper.getViews(schema);
}
return tables.size();
}
Aggregations