/*
* @author: Sumitkumar Shingavi (sumi.shingavi@gmail.com)
* @created_date: 04/18/2015
* @description: Handler class for AccountTrigger
*/
public class AccountTriggerHandler {
public void onBeforeInsert(List<Account> lTriggerNew, Map<Id, Account> mTriggerNew) {
//Call AccountTriggerActions methods from here
}
public void onAfterInsert(List<Account> lTriggerNew, Map<Id, Account> mTriggerNew) {
//Call AccountTriggerActions methods from here
}
public void onBeforeUpdate(List<Account> lTriggerNew, Map<Id, Account> mTriggerNew, Map<Id, Account> mTriggerOld) {
//Call AccountTriggerActions methods from here
}
public void onAfterUpdate(List<Account> lTriggerNew, Map<Id, Account> mTriggerNew, Map<Id, Account> mTriggerOld) {
//Call AccountTriggerActions methods from here
//Just a sample if you have a batch which might kick this trigger and if it is calling
if(!System.isBatch()) {
//This will be only required if someWebserviceFutureCall is @future method called from Trigger
AccountTriggerActions.actionCallingWSFutureCall(lTriggerNew, mTriggerNew, mTriggerOld);
}
}
public void onBeforeDelete(List<Account> lTriggerOld, Map<id, Account> mTriggerOld) {
//Call AccountTriggerActions methods from here
}
public void onAfterDelete(List<Account> lTriggerOld, Map<id, Account> mTriggerOld) {
//Call AccountTriggerActions methods from here
}
public void onAfterUndelete(List<Account> lTriggerOld, Map<id, Account> mTriggerOld) {
//Call AccountTriggerActions methods from here
}
}