Dynamic Apex Flashcards
1
Q
What are the tools used to make Dynamic Apex?
A
Schema namespace
Dynamic SOQL
Dynamic SOSL
2
Q
What is Schema namespace used to access?
A
used to access info about configuration of our data model and the accompanying security model
3
Q
How do we implement Dynamic SOQL?
A
- Variable Binding
- Use the Database.query() method
4
Q
How do we implement Dynamic SOSL?
A
- Variable Binding
- Use the Search.query() method
5
Q
What are some of the System namespace classes?
A
-
Database
- Includes methods such as
- delete(recordToDelete, allOrNone)
- update(recordToUpdate, allOrNone)
- Includes methods such as
-
UserInfo
- Includes methods such as
- getFirstName()
- getLocale()
- Includes methods such as
-
System
- Includes methods such as
- assert(condition, msg)
- isQueable() - boolean
- Includes methods such as
-
Test
- Includes methods such as
- startTest()
- stopTest()
- Includes methods such as
-
Limit
- Includes methods such as
- getDMLStatements() - return number of DML statements
- getCallouts() - return number of web service statements that have been processed
- Includes methods such as