Apex Batch – Use of Interface Database.Stateful in Batch Class

Hello guys, Today, we will talk about interface named as Database.Stateful, it is used when we want to maintain the state across the batch call methods. In interface Database.Stateful, the instance member variable  of class maintain their values between transactions of execute()  method while the static variable does not support this feature in Batch class.  For…

Read More

Salesforce Apex Data Manipulation operations

Apex Data Manipulation Language(DML) Operations in Salesforce Use Data Manipulation Language (DML) Operations to insert, update, delete, and restore data in a database.We can execute DML Operations using two different forms. Apex DML Statement, Such asInsert SObject(); Apex DML database methods, such asDatabase.saversult() result=Data Insert(SObject()); —>The following example that inserts a new invoice statement by calling…

Read More