Search in sources :

Example 1 with IOConnection

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);
}
Also used : IOConnection(org.talend.designer.rowgenerator.external.data.IOConnection) ArrayList(java.util.ArrayList) IODataComponent(org.talend.core.model.components.IODataComponent)

Aggregations

ArrayList (java.util.ArrayList)1 IODataComponent (org.talend.core.model.components.IODataComponent)1 IOConnection (org.talend.designer.rowgenerator.external.data.IOConnection)1