-
Notifications
You must be signed in to change notification settings - Fork 0
The Soql.Cursor Class
Jason Siders edited this page Jul 4, 2025
·
5 revisions
Decorates Database.Cursor objects that are returned by Database.getCursor. These objects cannot be serialized or mocked by other means.
Use this object in conjunction with the getCursor SOQL method:
Soql soql = DatabaseLayer.Soql.newQuery(Account.SObjectType);
Soql.Cursor cursor = soql?.getCursor();
List<SObject> records = cursor?.fetch(0, 10);Fetches cursor rows that correspond to the offset position and the specified record count.
List<SObject> fetch(Integer position, Integer count)
Returns the underlying Database.Cursor object used to construct this object.
Database.Cursor getCursor()
Gets the number of rows returned in an Apex cursor from a Cursor.fetch operation.
Integer getNumRecords()
- 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