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);
}
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);
}
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);
}
Aggregations