Database

Instance of the forvendi.BreezzApi.BreezzDatabase class allows for the creation of DataStore and ModificationContext contexts. More details


FINAL Variables

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

getDML(sharingType)

Gets DML based on the sharing type.

Signature:

forvendi.BreezzApi.DATABASE.getDML(String sharingType)

Parameters:

  • sharingType - param sharingType ‘Inherited Sharing’ or ‘Without Sharing’ or ‘With Sharing’, returning DML instance.

Return Value:

DML instance.

Usage:

forvendi.BreezzApi.DATABASE.getDML('With Sharing');
forvendi.BreezzApi.DATABASE.getDML('Without Sharing');
forvendi.BreezzApi.DATABASE.getDML('Inherited Sharing');

createDataStore()

Creates a DataStore instance that enables accessing data from the database without writing a query.

Signature:

forvendi.BreezzApi.DATABASE.createDataStore();

Return Value:

DataStore instance.

Usage:

forvendi.BreezzApi.DATABASE.createDataStore();

Above code is to create an instance of class. Now you can use requests for data retrieval. First of all register loader, request to load data, load data, store data and get from store.


createModificationContext()

Creates ModificationContext instance which allows you to create, update or delete records from base.

Signature:

forvendi.BreezzApi.DATABASE.createModificationContext();

Return Value:

ModificationContext instance.

Usage:

forvendi.BreezzApi.SCHEDULER.createModificationContext();

Above code is running a scheduler that allows the use of a special feature to DML operation.