use of org.talend.designer.dbmap.external.data.ExternalDbMapData in project tdi-studio-se by Talend.
the class ExternalDataConverter method prepareExternalData.
/**
*
* Prepare ExternalMapperData object from internal data.
*
* @param mapperModel
* @return
*/
public ExternalDbMapData prepareExternalData(MapperModel mapperModel, ExternalDbMapUiProperties uiProperties) {
ExternalDbMapData externalData = new ExternalDbMapData();
inputTables = new ArrayList<ExternalDbMapTable>();
externalData.setInputTables(inputTables);
outputTables = new ArrayList<ExternalDbMapTable>();
externalData.setOutputTables(outputTables);
varsTables = new ArrayList<ExternalDbMapTable>();
externalData.setVarsTables(varsTables);
loadInExternalData(mapperModel.getInputDataMapTables());
loadInExternalData(mapperModel.getOutputDataMapTables());
externalData.setUiProperties(uiProperties);
return externalData;
}
use of org.talend.designer.dbmap.external.data.ExternalDbMapData in project tdi-studio-se by Talend.
the class DbMapComponent method getExternalEmfData.
@Override
public AbstractExternalData getExternalEmfData() {
final DBMapData emfMapperData = DbmapFactory.eINSTANCE.createDBMapData();
if (mapperMain == null) {
initMapperMain(false);
}
mapperMain.createModelFromExternalData(getIncomingConnections(), getOutgoingConnections(), externalData, getMetadataList(), false);
ExternalDbMapData data = mapperMain.buildExternalData();
if (mapperMain != null && data != null) {
if (externalData != null) {
DBMapHelper.saveDataToEmf(emfMapperData, externalData);
}
}
return emfMapperData;
}
Aggregations