-
Notifications
You must be signed in to change notification settings - Fork 447
Safely
pozil edited this page Oct 16, 2023
·
8 revisions
Class wraps DML Calls in FLS / Crud checks. Library is baseed on
a fluent api system. All calls are constructed, then chained with options.
For instances. new Safely().allOrNothing().doInsert(List<sObject>);
Notable chainable methods include:
- allOrNothing() - this enforces the AllOrNothing DML flag. All DML is eventually executed via Database.* methods which accept an allOrNothing parameter requiring all of the records to succeed or fail.
- throwIfRemovedFields() - this method, if called, will result in an exception being thrown if any record being modified has fields removed by the security decision.
TESTVISIBLE
TESTVISIBLE
Inheritance
RemovedFieldsException