@Test public void testCountAllWithConstraint() throws ApiException { assertEquals(8, this.conn.countAll("Account", "AnnualRevenue > 100000")); }
@Override public synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition) throws ApiException { logger.entry(sObjectType, condition); String queryStr = "SELECT count() FROM " + sObjectType + " WHERE " + condition; QueryResultType qResultStub = this.queryAllImpl(queryStr); int size = qResultStub.getSize(); logger.exit(size); return size; }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Override public synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition) throws ApiException { logger.entry(sObjectType, condition); String queryStr = "SELECT count() FROM " + sObjectType + " WHERE " + condition; QueryResultType qResultStub = this.queryAllImpl(queryStr); int size = qResultStub.getSize(); logger.exit(size); return size; } }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Override public synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition) throws ApiException { logger.entry(sObjectType, condition); String queryStr = "SELECT count() FROM " + sObjectType + " WHERE " + condition; QueryResultType qResultStub = this.queryAllImpl(queryStr); int size = qResultStub.getSize(); logger.exit(size); return size; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Override public synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition) throws ApiException { logger.entry(sObjectType, condition); String queryStr = "SELECT count() FROM " + sObjectType + " WHERE " + condition; QueryResultType qResultStub = this.queryAllImpl(queryStr); int size = qResultStub.getSize(); logger.exit(size); return size; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Override public synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition) throws ApiException { logger.entry(sObjectType, condition); String queryStr = "SELECT count() FROM " + sObjectType + " WHERE " + condition; QueryResultType qResultStub = this.queryAllImpl(queryStr); int size = qResultStub.getSize(); logger.exit(size); return size; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects);  }