use of org.talend.components.salesforce.tsalesforcegetupdated.TSalesforceGetUpdatedProperties in project components by Talend.
the class SalesforceSource method createReader.
@Override
public BoundedReader createReader(RuntimeContainer adaptor) {
if (properties instanceof TSalesforceInputProperties) {
TSalesforceInputProperties sfInProperties = (TSalesforceInputProperties) properties;
boolean isBulk = TSalesforceInputProperties.QueryMode.Bulk.equals(sfInProperties.queryMode.getValue());
sfInProperties.connection.bulkConnection.setValue(isBulk);
if (isBulk) {
return new SalesforceBulkQueryInputReader(adaptor, this, sfInProperties);
} else {
return new SalesforceInputReader(adaptor, this, sfInProperties);
}
} else if (properties instanceof TSalesforceGetServerTimestampProperties) {
return new SalesforceServerTimeStampReader(adaptor, this, (TSalesforceGetServerTimestampProperties) properties);
} else if (properties instanceof TSalesforceGetDeletedProperties) {
return new SalesforceGetDeletedReader(adaptor, this, (TSalesforceGetDeletedProperties) properties);
} else if (properties instanceof TSalesforceGetUpdatedProperties) {
return new SalesforceGetUpdatedReader(adaptor, this, (TSalesforceGetUpdatedProperties) properties);
} else if (properties instanceof TSalesforceBulkExecProperties) {
((TSalesforceBulkExecProperties) properties).connection.bulkConnection.setValue(true);
return new SalesforceBulkExecReader(adaptor, this, (TSalesforceBulkExecProperties) properties);
}
return null;
}
Aggregations