This class is response for handling SOQL queries to the mock database
Since
4/13/2024
Author Zackary Frazier
Perform an aggregate query
public List<Aggregate> aggregateQuery(String query)
Name | Type | Description |
---|---|---|
query | String | String |
List<Aggregate>
,[object Object]
Perform an aggregate query with access level
public List<Aggregate> aggregateQuery(String query, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
accessLevel | System.AccessLevel | System.AccessLevel |
List<Aggregate>
,[object Object]
Perform an aggregate query with binds
public List<Aggregate> aggregateQueryWithBinds(String query, Map<String,Object> binds, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
binds | Map<String,Object> | Map<String, Object> |
accessLevel | System.AccessLevel | System.AccessLevel |
List<Aggregate>
,[object Object]
Perform a count query
public Integer countQuery(String query)
Name | Type | Description |
---|---|---|
query | String | String |
Integer
,[object Object]
Perform a count query with access level
public Integer countQuery(String query, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
accessLevel | System.AccessLevel | System.AccessLevel |
Integer
,[object Object]
Perform a count query with binds
public Integer countQueryWithBinds(String query, Map<String,Object> binds, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
binds | Map<String,Object> | Map<String, Object> |
accessLevel | System.AccessLevel | System.AccessLevel |
Integer
,[object Object]
Internal, do not use this method
public List<SObject> doSelectQueryInternal(Node head, Map<String,Object> params)
Name | Type | Description |
---|---|---|
head | Node | Node |
params | Map<String,Object> | Map<String, Object> |
List<SObject>
,[object Object]
Query the database for records
public List<SObject> query(String query)
Name | Type | Description |
---|---|---|
query | String | String |
List<SObject>
,[object Object]
Query the database for records, with access level
public List<SObject> query(String query, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
accessLevel | System.AccessLevel | System.AccessLevel |
List<SObject>
,[object Object]
Query the database for records, with binds
public List<SObject> queryWithBinds(String query, Map<String,Object> binds, System.AccessLevel accessLevel)
Name | Type | Description |
---|---|---|
query | String | String |
binds | Map<String,Object> | Map<String, Object> |
accessLevel | System.AccessLevel | System.AccessLevel |
List<SObject>
,[object Object]