user image

Deepika Deepika

Job Interview Skills
English
2 years ago

Explain various methods of batch Apex class?

user image

Abhishek Mishra

2 years ago

The batch apex class deploys the database batchable interface with the three methods as follows: Start Finish Execute Start: We use the start method at the beginning of the batch apex job. We use it for collecting the objects or records, for passing them to the interface for executing. It returns a DatabaseQueryLocator object that comprises objects or the records sent to the job. Finish: We call this method once we finish the batch processing. We use this method to send confirmation emails or to execute the post-processing operations. Execute: We use this method for every batch of the records that are sent to the method. We use this method for data processing. This method does the following: sObjects records list Reference to the DatabaseBatcheable context.

Recent Doubts

Close [x]