Database

DB


DB is the utility class for the database DML operations. Allows to dynamically switch between with and without contexts. Generalizes the Salesforce database DML operation results and simplifies error handling.


FINAL Variables
  • SECURED - Allows to execute DML action in the “with sharing” context.
  • UNSECURED - Allows to execute DML action in the “with sharing” context.
  • INHERITED - Allows to execute DML action in the “with sharing” context.

getDml(String sharingType)

Gets DML base on the sharing type.

Signature:

forvendi.DB.getDML(String sharingType);

Parameters:

sharingType - ‘Inherited Sharing’ or ‘Without Sharing’ or ‘With Sharing’

Return:

DML instance.