Search in sources :

Example 1 with SalesforceSink

use of org.talend.components.salesforce.runtime.SalesforceSink in project components by Talend.

the class SalesforceTestBase method doWriteRows.

// Returns the rows written (having been re-read so they have their Ids)
protected static void doWriteRows(SalesforceConnectionModuleProperties props, List<IndexedRecord> outputRows) throws Exception {
    SalesforceSink salesforceSink = new SalesforceSink();
    salesforceSink.initialize(adaptor, props);
    salesforceSink.validate(adaptor);
    SalesforceWriteOperation writeOperation = salesforceSink.createWriteOperation();
    Writer<Result> saleforceWriter = writeOperation.createWriter(adaptor);
    writeRows(saleforceWriter, outputRows);
}
Also used : SalesforceWriteOperation(org.talend.components.salesforce.runtime.SalesforceWriteOperation) SalesforceSink(org.talend.components.salesforce.runtime.SalesforceSink) ValidationResult(org.talend.daikon.properties.ValidationResult) Result(org.talend.components.api.component.runtime.Result)

Example 2 with SalesforceSink

use of org.talend.components.salesforce.runtime.SalesforceSink in project components by Talend.

the class SalesforceWriteOperationTest method setUp.

@Before
public void setUp() {
    properties = new TSalesforceOutputProperties("root");
    sink = new SalesforceSink();
    writeOperation = new SalesforceWriteOperation(sink);
}
Also used : TSalesforceOutputProperties(org.talend.components.salesforce.tsalesforceoutput.TSalesforceOutputProperties) SalesforceWriteOperation(org.talend.components.salesforce.runtime.SalesforceWriteOperation) SalesforceSink(org.talend.components.salesforce.runtime.SalesforceSink) Before(org.junit.Before)

Example 3 with SalesforceSink

use of org.talend.components.salesforce.runtime.SalesforceSink in project components by Talend.

the class SalesforceTestBase method doWriteRows.

// Returns the rows written (having been re-read so they have their Ids)
protected static void doWriteRows(SalesforceConnectionModuleProperties props, List<IndexedRecord> outputRows) throws Exception {
    SalesforceSink salesforceSink = new SalesforceSink();
    salesforceSink.initialize(adaptor, props);
    salesforceSink.validate(adaptor);
    SalesforceWriteOperation writeOperation = salesforceSink.createWriteOperation();
    Writer<Result> saleforceWriter = writeOperation.createWriter(adaptor);
    writeRows(saleforceWriter, outputRows);
}
Also used : SalesforceWriteOperation(org.talend.components.salesforce.runtime.SalesforceWriteOperation) SalesforceSink(org.talend.components.salesforce.runtime.SalesforceSink) ValidationResult(org.talend.daikon.properties.ValidationResult) Result(org.talend.components.api.component.runtime.Result)

Aggregations

SalesforceSink (org.talend.components.salesforce.runtime.SalesforceSink)3 SalesforceWriteOperation (org.talend.components.salesforce.runtime.SalesforceWriteOperation)3 Result (org.talend.components.api.component.runtime.Result)2 ValidationResult (org.talend.daikon.properties.ValidationResult)2 Before (org.junit.Before)1 TSalesforceOutputProperties (org.talend.components.salesforce.tsalesforceoutput.TSalesforceOutputProperties)1