@Test public void testUpdate() throws IOException { List<RestSObject> initialQueryResults = conn.query("Select Name, Id from Opportunity").getSObjects(); assertTrue(initialQueryResults.size() > 1); SObject sObj = initialQueryResults.get(0); Id id = sObj.getId(); assertNotNull(id); String origName = sObj.getField("Name"); sObj.setField("Name", origName + "xyz"); conn.update(sObj); List<RestSObject> postUpdateQueryResults = conn.query("Select Name, Id from Opportunity WHERE Id = '" + id.toString() + "'").getSObjects(); assertEquals(1, postUpdateQueryResults.size()); SObject postUpdateSObj = postUpdateQueryResults.get(0); assertEquals(origName + "xyz", postUpdateSObj.getField("Name")); postUpdateSObj.setField("Name", origName); conn.update(postUpdateSObj); List<RestSObject> post2ndUpdateQueryResults = conn.query("Select Name, Id from Opportunity WHERE Id = '" + id.toString() + "'").getSObjects(); assertEquals(1, post2ndUpdateQueryResults.size()); SObject post2ndUpdateSObj = post2ndUpdateQueryResults.get(0); assertEquals(origName, post2ndUpdateSObj.getField("Name")); }
@Override public void update(SObject sObject) throws IOException { Timer.Context context = updateTimer.time(); try { this.getHttpApiClient().update(sObject); } finally { context.stop(); } }
RestConnectionImpl implements RestConnection { @Override public void update(SObject sObject) throws IOException { Timer.Context context = updateTimer.time(); try { this.getHttpApiClient().update(sObject); } finally { context.stop(); } } }
RestConnectionImpl implements RestConnection { @Override public void update(SObject sObject) throws IOException { Timer.Context context = updateTimer.time(); try { this.getHttpApiClient().update(sObject); } finally { context.stop(); } } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); }
RestConnectionImpl implements RestConnection { @Override public void update(SObject sObject) throws IOException { Timer.Context context = updateTimer.time(); try { this.getHttpApiClient().update(sObject); } finally { context.stop(); } } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); @Override @Nonnull SaveResult create(SObject sObject); @Override void delete(String sObjectType, Id id); @Override @Nonnull DescribeGlobalResult describeGlobal(); @Override @Nonnull SObjectDescription describeSObject(String sObjectType); @Override @Nonnull BasicSObjectMetadataResult getBasicObjectInfo(String sObjectType); @Override @Nonnull RestQueryResult query(String soql); @Override @Nonnull RestQueryResult queryMore(RestQueryLocator queryLocator); @Override @Nonnull SObject retrieve(String sObjectType, Id id, List<String> fields); @Override @Nonnull List<SObject> search(String sosl); @Override void update(SObject sObject); @Override @Nonnull UpsertResult upsert(SObject sObject, String externalIdField); }
RestConnectionImpl implements RestConnection { @Override public void update(SObject sObject) throws IOException { Timer.Context context = updateTimer.time(); try { this.getHttpApiClient().update(sObject); } finally { context.stop(); } } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); @Override @Nonnull SaveResult create(SObject sObject); @Override void delete(String sObjectType, Id id); @Override @Nonnull DescribeGlobalResult describeGlobal(); @Override @Nonnull SObjectDescription describeSObject(String sObjectType); @Override @Nonnull BasicSObjectMetadataResult getBasicObjectInfo(String sObjectType); @Override @Nonnull RestQueryResult query(String soql); @Override @Nonnull RestQueryResult queryMore(RestQueryLocator queryLocator); @Override @Nonnull SObject retrieve(String sObjectType, Id id, List<String> fields); @Override @Nonnull List<SObject> search(String sosl); @Override void update(SObject sObject); @Override @Nonnull UpsertResult upsert(SObject sObject, String externalIdField);  }