Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Apex Programming
  • Table Of Contents Toc
Learning Apex Programming

Learning Apex Programming

By : Matthew Kaufman, Wicherski
2.8 (6)
close
close
Learning Apex Programming

Learning Apex Programming

2.8 (6)
By: Matthew Kaufman, Wicherski

Overview of this book

If you are a developer who has some object-oriented programming experience, Learning Apex Programming is the perfect book for you. This book is most appropriate for developers who wish to gain an understanding of the Force.com platform and how to use Apex to create business applications.
Table of Contents (11 chapters)
close
close
10
Index

Bigger, better, and batchier


The Database.Batchable interface can be a lifesaver when dealing with large datasets. As there is a limit on the number of callouts that can occur in a single transaction, the Batchable interface is often used to sync data with outside systems. In order to perform a callout from an implementation of the Database.Batchable interface, you need to make a small tweak to your class definition. In addition to implementing the Database.Batchable interface, you must also implement the Database.AllowCallouts interface, shown as follows:

//Apex Class that implements the Batchable interface
global class contactBatch implements Database.Batchable<SObject>, Database.AllowCallouts {
  ...
}

Your code to perform callouts can occur in the start(), execute(), and finish() methods. The exact number of callouts allowed is specified in Salesforce Limits Quick Reference Guide located at https://login.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf. At the time...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Apex Programming
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon