Learn Apex Batch Job
Batch Class in Salesforce Batch Apex is exposed as an interface that must be implemented by the developer. Batch jobs can be pro grammatically invoked at run time using Apex. Need of Batch Apex: - As you all might know about the salesforce governor limits on its data. When you want to fetch thousands of records or fire DML on thousands of rows on objects it is very complex in salesforce and it does not allow you to operate on more than certain number of records which satisfies the Governor limits. We have to create an global apex class which extends Database.Batchable Interface because of which the salesforce compiler will know, this class incorporates batch jobs Example: Class implementingBatchJob implements Database.Batchable{ global final String Query; global deleteOpp (String q) { Query=q; } global Database.QueryLocator start(Database.BatchableContext BC) { return Database.getQueryLocator(query); } global ...