What Is Database Batchablecontext
Represents the Parameter Type of a Batch Job Method and Contains the Batch Job Id. This Interface Is Implemented Internally by Apex. What Is the Use of...
Represents the parameter type of a batch job method and contains the batch job ID. This interface is implemented internally by Apex.
What is the use of Database BatchableContext in Salesforce?
BatchableContext’ can be used along with the instance method ‘getJobID’ to retrieve the current batch job Id within the batch class. This can be used in combination with ‘AsyncApexJob’ to obtain additional information about the batch job. Database. executeBatch returns the current job ID when invoking batch Apex.
What is Database QueryLocator in Salesforce?
Database.getQueryLocator in Salesforce returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex or used for displaying large sets in VF.