Join Duard Lynn Davis for an in-depth discussion in this video Loader, part of Learning Salesforce.com Development.
- [Instructor] So, let's look at the first part…of Batch Apex which is the loader.…The loader's actually going to be the class…that does the work for us.…So, first thing we do is we go in using our Eclipse IDE,…and we create a class called ExampleBatchLoader.…Now remember, the IDE is going to give us…public with sharing class ExampleBatchLoader.…We need to do some modifications to it.…The first thing we're going to do…is change that from public with sharing class…to global class,…the name ExampleBatchLoader implements…the database.batchable as object…in the database.statefall.…
So we make that modification,…we're then going to add in a public string query…and we're going to add in three methods.…One is a Global Database QueryLocator,…a global void execute and a global void finish.…So, the Global Database QueryLocator…almost never do anything with that,…just leave it as is right there.…When you actually start this class executing,…the query you do is going to come in here,…it's going to do the database.query…with that query string and if that's for a million records,…
AuthorDuard Lynn Davis
- How Apex works
- Bulkification and triggers
- Systematically debugging your code
- Sets, lists, and maps
- Trigger and trigger handlers
- Batch Apex
- Debugging and logging
Skill Level Intermediate
1. Introduction to Environment
2. Sets, Lists, and Maps
3. Trigger and Trigger Handlers
4. Batch Apex
5. Debugging and Logging
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.