- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
The Soql.Operator Class
        Jason Siders edited this page Jul 3, 2025 
        ·
        6 revisions
      
    Object used to represent the operator token in SOQL WHERE and HAVING clauses. The framework uses this to format these clauses.
All possible values are enumerates as public static final properties on the Soql class. This enables developers to interact with this class as if it were an enum of sorts:
Soql query = DatabaseLayer.Soql.newQuery(User.SObjectType)
  ?.addWhere(field, Soql.EQUALS, 'System Administrator')
  ?.toSoql();| Property | Operator | 
|---|---|
Soql.EQUALS | 
= | 
Soql.NOT_EQUALS | 
!= | 
Soql.IN_COLLECTION | 
IN | 
Soql.NOT_IN_COLLECTION | 
NOT IN | 
Soql.GREATER_THAN | 
> | 
Soql.GREATER_OR_EQUAL | 
>= | 
Soql.LESS_THAN | 
< | 
Soql.LESS_OR_EQUAL | 
<= | 
Soql.STARTS_WITH | 
LIKE | 
Soql.NOT_STARTS_WITH | 
NOT LIKE | 
Soql.ENDS_WITH | 
LIKE | 
Soql.NOT_ENDS_WITH | 
NOT LIKE | 
Soql.CONTAINS | 
LIKE | 
Soql.NOT_CONTAINS | 
NOT LIKE | 
- 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