0 votes
in Technology by (1.7m points)
What are the different methods of batch Apex class?

1 Answer

0 votes
by (1.7m points)

Database.Batchable interface contains three methods that must be implemented:

Start method:

global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

Execute method:

global void execute(Database.BatchableContext BC, list<P>){}

Finish method:

global void finish(Database.BatchableContext BC){}

...