Dynamic Apex Flashcards

1
Q

What are the tools used to make Dynamic Apex?

A

Schema namespace
Dynamic SOQL
Dynamic SOSL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we implement Dynamic SOQL?

A
  1. Variable Binding
  2. Use the Database.query() method
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we implement Dynamic SOSL?

A
  1. Variable Binding
  2. Use the Search.query() method
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some of the System namespace classes?

A
  • Database
    • Includes methods such as
      • delete(recordToDelete, allOrNone)
      • update(recordToUpdate, allOrNone)
  • UserInfo
    • Includes methods such as
      • getFirstName()
      • getLocale()
  • System
    • Includes methods such as
      • assert(condition, msg)
      • isQueable() - boolean
  • Test
    • Includes methods such as
      • startTest()
      • stopTest()
  • Limit
    • Includes methods such as
      • getDMLStatements() - return number of DML statements
      • getCallouts() - return number of web service statements that have been processed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly