Last active
May 27, 2023 14:35
-
-
Save Mycoola/db3f4f84bdc2b08b3f6ddc2d96815433 to your computer and use it in GitHub Desktop.
TriggerHandler Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface TriggerHandler { | |
void beforeInsert(List<SObject> newRecords); | |
void beforeUpdate(List<SObject> oldRecords, List<SObject> newRecords, Map<ID, SObject> oldRecordMap, Map<ID, SObject> newRecordMap); | |
void beforeDelete(List<SObject> oldRecords, Map<ID, SObject> oldRecordMap); | |
void afterInsert(List<SObject> newRecords, Map<ID, SObject> newRecordMap); | |
void afterUpdate(List<SObject> oldRecords, List<SObject> newRecords, Map<ID, SObject> oldRecordMap, Map<ID, SObject> newRecordMap); | |
void afterDelete(List<SObject> oldRecords, Map<ID, SObject> oldRecordMap); | |
void afterUndelete(List<SObject> newRecords, Map<ID, SObject> newRecordMap); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment