0
What are the different methods of batch Apex class?

Open 1 Answers 29 Views Technology
What are the different methods of batch Apex class?

1 Answer

0

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){}

by (249k points)
...