use of org.teiid.translator.salesforce.execution.UpdatedResult in project teiid by teiid.
the class SalesforceConnectionImpl method getUpdated.
public UpdatedResult getUpdated(String objectType, Calendar startDate, Calendar endDate) throws ResourceException {
GetUpdatedResult updated;
try {
updated = partnerConnection.getUpdated(objectType, startDate, endDate);
} catch (InvalidSObjectFault e) {
throw new ResourceException(e);
} catch (UnexpectedErrorFault e) {
throw new ResourceException(e);
} catch (ConnectionException e) {
throw new ResourceException(e);
}
UpdatedResult result = new UpdatedResult();
result.setLatestDateCovered(updated.getLatestDateCovered());
result.setIDs(Arrays.asList(updated.getIds()));
return result;
}
Aggregations