Trigger.New Characteristics correct answers 1. Only available in update and insert.
2. Is a list of the records waiting to be committed.
Trigger.Old Characteristics correct answers 1. Only available in update and delete.
2. Is a list of records waiting to be updated or deleted.
Number of ...
Trigger.New Characteristics correct answers 1. Only available in update and insert.
2. Is a list of the records waiting to be committed.
Trigger.Old Characteristics correct answers 1. Only available in update and delete.
2. Is a list of records waiting to be updated or deleted.
Number of rows you can fetch in a SOQL correct answers 50,000
Maximum number of records you can fetch in a SOSL Query correct answers 2,000
Maximum number of SOQL queries you can initiate correct answers 100
Maximum number SOQL queries you can initiate in async Apex correct answers 200
Total number of DML statements you can issue correct answers 150
Maximum number of records which can be processed on DML operations correct
answers 10,000
Total number of call-outs in a transaction correct answers 100
Total cumulative timeout on web-service call in a transaction correct answers 120
seconds
Maximum processing time for an APEX transaction correct answers 10 minutes
Maximum push notification from APEX transaction correct answers 10
When should you use a custom controller correct answers 1. You want to use data
from multiple objects that are unrelated.
2. You want some unique, core functionality (your page can only have one controller!)
3. When you want to replace a standard controller.
What are the necessary components of creating a custom extension? correct answers
Access Modifier
Class
Name
Member Variables
Constructor (same name as class) (ApexPages.StandardController stdController as
param)
, public class myControllerExtension {
private final Account acct;
public myControllerExtension(ApexPages.StandardController stdController) {
this.acct = (Account)stdController.getRecord();
}
What are the necessary components of creating a custom controller? correct answers
Class
Member Variables (Final)
Constructor with class name. No Return value.
Assign value to member values in constructor.
Get and Set Methods
public class MyController {
private final Account account;
public MyController() {
account = [SELECT Id, Name, Site FROM Account
WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
public Account getAccount() {
return account;
}
public PageReference save() {
update account;
return null;
}
}
How do you enforce object and field-level security settings? correct answers 1. You can
use Schema.DescribeSObjectResult to get a description of the field or object, which will
also check if the user can read/write.
2. SOQL use WITH SECURITY_ENFORCED
if (Schema.sObjectType.Contact.fields.Email.isCreateable()) {
// Create new contact
}
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HopeJewels. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.