forked from PoojMane/TriggerFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITriggerInterface.cls
More file actions
50 lines (48 loc) · 2.24 KB
/
Copy pathITriggerInterface.cls
File metadata and controls
50 lines (48 loc) · 2.24 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
42
43
44
45
46
47
48
49
50
/*******************************************************************************************
* @Name ITriggerInterfaceTriggerInterface
* @Author Pooja Mane <poojmane@in.ibm.com>
* @Group Trigger Framework
* @Description Trigger Framework Interface to abstract the trigger implementation methods
*******************************************************************************************/
/* MODIFICATION LOG
* Version Developer Date Description
*-------------------------------------------------------------------------------------------
* 1.0 Pooja Initial Creation
*******************************************************************************************/
public interface ITriggerInterface {
/*
@Description : Called by the trigger framework before insert of the records
@Parameters : List<SObject> newItems
*/
void beforeInsert(List<SObject> newItems);
/*
@Description : Called by the trigger framework after insert of the records
@Parameters : Map<Id, SObject> newItems
*/
void afterInsert(Map<Id, SObject> newItems);
/*
@Description : Called by the trigger framework before update of the records
@Parameters : Map<Id, SObject> newItems, Map<Id, SObject> oldItems
*/
void beforeUpdate(Map<Id, SObject> newItems, Map<Id, SObject> oldItems);
/*
@Description : Called by the trigger framework after update of the records
@Parameters : Map<Id, SObject> newItems, Map<Id, SObject> oldItems
*/
void afterUpdate(Map<Id, SObject> newItems, Map<Id, SObject> oldItems);
/*
@Description : Called by the trigger framework before delete of the records
@Parameters : Map<Id, SObject> oldItems
*/
void beforeDelete(Map<Id, SObject> oldItems);
/*
@Description : Called by the trigger framework after delete of the records
@Parameters : Map<Id, SObject> oldItems
*/
void afterDelete(Map<Id, SObject> oldItems);
/*
@Description : Called by the trigger framework after undelete of the records
@Parameters : Map<Id, SObject> oldItems
*/
void afterUndelete(Map<Id, SObject> oldItems);
}