QueryResult

The queryMore() call returns a QueryResult object, which has the following properties:

Name Type Description
queryLocator QueryLocator A specialized string, similar to ID. Used in the subsequent queryMore() call for retrieving sets of objects from the query results, if applicable.
done boolean Indicates whether additional rows need to be retrieved from the query results (false) using another queryMore() call, or not (true). Your client application can use this value as a loop condition while iterating through the query results.
records sObject[] Array of sObjects representing individual objects of the specified object and containing data defined in the field list specified in the queryString.
size int Total number of rows retrieved in the query. Your client application can use this value to determine whether the query retrieved any rows (size > 0) or not (size = 0).
Note
A queryMore()call on a parent object invalidates all child cursors in the previous result set. If you need the results from the child, you must use queryMore() on those results before using queryMore() on the parent results.
© Copyright 2000-2010 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.