-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccountTriggerHandler
More file actions
41 lines (26 loc) · 1.2 KB
/
AccountTriggerHandler
File metadata and controls
41 lines (26 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public class AccountTriggerHandler extends TriggerHandler {
protected override void beforeInsert() {
}
protected override void beforeUpdate() {
}
protected override void beforeDelete() {
}
protected override void afterInsert() {
}
protected override void afterUpdate() {
}
protected override void afterDelete() {
}
protected override void afterUndelete() {
}
private void getObjects() {
List<Account> listNew = (List<Account>) this.getTriggerNew();
List<Account> listOld = (List<Account>) this.getTriggerOld();
List<Account> listNewPf = (List<Account>) this.getTriggerNewByRecordTypeDeveloperName('PF');
List<Account> listOldPf = (List<Account>) this.getTriggerOldByRecordTypeDeveloperName('PF');
Map<Id, Account> mapNew = (Map<Id, Account>) this.getTriggerMapNew();
Map<Id, Account> mapOld = (Map<Id, Account>) this.getTriggerMapOld();
Map<Id, Account> mapNewPF = (Map<Id, Account>) this.getTriggerNewMapByRecordTypeDeveloperName('PF');
Map<Id, Account> mapOldPF = (Map<Id, Account>) this.getTriggerOldMapByRecordTypeDeveloperName('PF');
}
}