CaseTriggerHandler
Inheritance
TriggerHandler > CaseTriggerHandler
Group Class Group
public CaseTriggerHandler()Constructor
public override void beforeInsert()public override void afterInsert()public override void beforeUpdate()public void run()Inherited
This method is the main ‘execution’ of a trigger. It is responsible for classing the various methods throughout the lifecycle of a trigger.
public void setMaxLoopCount(Integer max)Inherited
Configure a maximum ‘recursion’ for a trigger
| Param | Description |
|---|---|
max |
The maximum number of recursions allowed |
MyTriggerHandler.setMaxLoopCount(1);
public void clearMaxLoopCount()Inherited
Remove the maximum ‘recursion’ for a trigger
MyTriggerHandler.clearMaxLoopCount();
public static void bypass(String handlerName)Inherited
Add a specific handler to the bypass list
| Param | Description |
|---|---|
handlerName |
MyTriggerHandler.bypass('myHandlerName');
public static void clearBypass(String handlerName)Inherited
Remove a specific handler from the bypass list
| Param | Description |
|---|---|
handlerName |
MyTriggerHandler.clearBypass('myHandlerName');
public static Boolean isBypassed(String handlerName)Inherited
Helper to check if a specific handler is in the bypass list
| Param | Description |
|---|---|
handlerName |
| Type | Description |
|---|---|
Boolean |
Boolean |
MyTriggerHandler.isBypassed('myHandlerName');
public static void clearAllBypasses()Inherited
Empties all handlers from the bypass list
MyTriggerHandler.clearAllBypasses();