- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
The Soql.QueryLocator Class
        Jason Siders edited this page Jul 4, 2025 
        ·
        5 revisions
      
    Decorates Database.QueryLocator objects that are returned by Database.getQueryLocator. These objects cannot be serialized or mocked by other means.
Use this object in conjunction with the getQueryLocator method:
Soql soql = DatabaseLayer.Soql?.newQuery(Account.SObjectType);
Soql.QueryLocator locator = soql?.getQueryLocator();Returns the underlying Database.QueryLocator object used to construct this object.
Database.QueryLocator getLocator()
Returns the query from the underlying Database.QueryLocator's getQuery() method.
String getQuery()
Returns a System.Iterator<SObject> from the underlying Database.QueryLocator's iterator() method.
System.Iterator<SObject> iterator()
- Generating Test Records
 - Dml
 - Soql
 - Cmdt
 - Plugins
 
- DatabaseLayer
 - Dml
 - MockDml
 - MockRecord
 - Cmdt
 - MockCmdt
 - MockSoql
 - 
Soql
- Soql.AggregateResult
 - Soql.Aggregation
 - Soql.Binder
 - Soql.Builder
 - Soql.Condition
 - Soql.ConditionalLogic
 - Soql.Criteria
 - Soql.Cursor
 - Soql.Function
 - Soql.InnerQuery
 - Soql.InvalidParameterValueException
 - Soql.LogicType
 - Soql.NullOrder
 - Soql.Operation
 - Soql.Operator
 - Soql.ParentField
 - Soql.PreAndPostProcessor
 - Soql.QueryLocator
 - Soql.Request
 - Soql.Scope
 - Soql.Selectable
 - Soql.SortDirection
 - Soql.SortOrder
 - Soql.Subquery
 - Soql.TypeOf
 - Soql.Usage
 - Soql.WhenClause