Hello,
I retrive universe from repository, open local DataFoundation and getting tables.
Now I want to knowwhichconnection (repository SI_ID) using each table. Any ideas?
My code:
String localPath = cmsService.retrieveUniverse("MY_UNIVERSE.unx", LOCAL_FOLDER, true); SlResource loadedRes = localService.load(localPath); RelationalBusinessLayer businessLayer = (RelationalBusinessLayer) loadedRes; String localDFPath = businessLayer.getDataFoundationPath(); SlResource resource = localService.load(localDFPath); DataFoundation dataFoundation = null; if (resource instanceof MonoSourceDataFoundation) { dataFoundation = (MonoSourceDataFoundation) resource; } else if (resource instanceof MultiSourceDataFoundation) { dataFoundation = (MultiSourceDataFoundation) resource; } List<Table> tables = dataFoundation.getTables(); for (Table table : tables) { System.out.println("Table: " + table.getName() + " using connection: ????"); }
BO 4.1 SP3