ExamGecko
Question list
Search
Search

Question 29 - Certified B2B Commerce Developer discussion

Report
Export

How are variables bound when services use the ccSercviceDao classto execute queries?

A.
Global variables
Answers
A.
Global variables
B.
Apex local variables
Answers
B.
Apex local variables
C.
String substitution
Answers
C.
String substitution
D.
Apex class variables
Answers
D.
Apex class variables
Suggested answer: C

Explanation:

When services use the ccServiceDao class to execute queries, variables are bound by string substitution. This means that the query string contains placeholders for variables that are replaced by their values at runtime. For example,ccrz.ccServiceDao.getQuery('SELECT Id FROM Account WHERE Name = :name')will replace:namewith the value of thenamevariable.

asked 23/09/2024
Michael Marzotto
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first