fferpcore.PluggableTriggerglobal inherited sharing class PluggableTrigger extends fflib_SObjectDomain A domain class for an Apex trigger which executes any pluggable triggers (classes implementing PluggableTriggerApi.Plugin). It is intended to be used with fflib_SObjectDomain from FFLib, which invokes the methods on this class. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. trigger BillingDocumentTrigger on BillingDocument__c( before insert, before update, before delete, after insert, after update, after delete, after undelete ) { fflib_SObjectDomain.triggerHandler(fferpcore.PluggableTrigger.class); } Methods
PluggableTriggerglobal PluggableTrigger(List<SObject> sObjectList, List<fferpcore.PluggableTriggerApi.Plugin> plugins) Construct this domain class. Input Parameters
onBeforeInsertglobal override void onBeforeInsert() Invokes onBeforeInsert() on each pluggable trigger. onBeforeUpdateglobal override void onBeforeUpdate(Map<Id, SObject> existingRecords) Invokes onBeforeUpdate() on each pluggable trigger. Input Parameters
onBeforeDeleteglobal override void onBeforeDelete() Invokes onBeforeDelete() on each pluggable trigger. onAfterInsertglobal override void onAfterInsert() Invokes onAfterInsert() on each pluggable trigger. onAfterUpdateglobal override void onAfterUpdate(Map<Id, SObject> existingRecords) Invokes onAfterUpdate() on each pluggable trigger. Input Parameters
onAfterDeleteglobal override void onAfterDelete() Invokes onAfterDelete() on each pluggable trigger. onAfterUndeleteglobal override void onAfterUndelete() Invokes onAfterUndelete() on each pluggable trigger. fferpcore.PluggableTrigger.Constructorglobal inherited sharing class Constructor implements fflib_SObjectDomain.IConstructable Responsible for finding and constructing any pluggable triggers. MethodsConstructorglobal Constructor() constructglobal fferpcore.PluggableTrigger construct(List<SObject> objects) Constructs the pluggable triggers. |