use of org.talend.designer.rowgenerator.external.data.IOConnection in project tdi-studio-se by Talend.
the class RowGenMain method createModelFromExternalData.
/**
* qzhang Comment method "createModelFromExternalData".
*
* @param dataComponents
* @param metadataList
* @param externalData
* @param b
*/
public void createModelFromExternalData(IODataComponentContainer dataComponents, List<IMetadataTable> metadataList, ExternalRowGeneratorData externalData, boolean b) {
List<IODataComponent> inputsData = dataComponents.getInputs();
List<IODataComponent> ouputsData = dataComponents.getOuputs();
ArrayList<IOConnection> inputs = new ArrayList<IOConnection>(inputsData.size());
for (IODataComponent iData : inputsData) {
inputs.add(new IOConnection(iData));
}
ArrayList<IOConnection> outputs = new ArrayList<IOConnection>(ouputsData.size());
for (IODataComponent oData : ouputsData) {
outputs.add(new IOConnection(oData));
}
createModelFromExternalData(inputs, outputs, metadataList, externalData, false);
}
Aggregations