O'Reilly logo

The Developer’s Guide to the Force.com Platform by Phil Choi, Andrew Fawcett, Glen Martin, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data integrity

Data integrity is one of the highest virtues of any IT system. You must be able to count on your data reliably reflecting proper values in all scenarios. The Force Platform provides a lot of built-in robustness that protects your data, but whenever anyone is going to write data, you always have the possibility of conflicting user actions causing a loss of data integrity.

The basic unit used to protect data integrity is the transaction. A transaction is an all-or-nothing unit of work. Transactions on the Force Platform, by default, begin when your Apex code issues a DML statement and end when the Apex script that contains them completes. If the script ends without errors, the transaction’s changes to the data commit. If the script ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required