Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Force.com Application Development

You're reading from   Learning Force.com Application Development Use the Force.com platform to design and develop real-world, cutting-edge cloud applications

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781782172796
Length 406 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Chamil Madusanka Chamil Madusanka
Author Profile Icon Chamil Madusanka
Chamil Madusanka
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Getting Started with Force.com 2. Building the Data Model FREE CHAPTER 3. Building the User Interface 4. Designing Apps for Multiple Users and Protecting Data 5. Implementing Business Processes 6. Data Management on the Force.com Platform 7. Custom Coding with Apex 8. Building Custom Pages with Visualforce 9. Analytics as a Service with the Force.com Platform 10. E-mail Services with the Force.com Platform 11. Building Public Websites with Force.com Sites 12. Deploying the Force.com Application A. Force.com Tools Index

Data manipulation on the Force.com platform


DML statements allow users to retrieve, insert, delete, and update sObject data in the Force.com database. Apex has a set of DML commands, as follows, which can take a single sObject or a list of sObjects:

  • insert: This command is used to add records to the particular Force.com database object. The ID is automatically generated for a record while executing this command.

  • update: This command is used to update fields of an existing record in the Force.com database object. The update is based on the ID of the particular record.

  • upsert; Based on the ID field, this command can either insert or update the particular records. If the record has a value for the ID field, then the record will be updated, and if the record doesn't have a value for the ID field, the record will be inserted.

  • delete: This command is used to delete records from the Force.com database based on the ID of the record. If any record is adhered to cascade deleting (such as a master-detail...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image