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 ...

Get The Developer’s Guide to the Force.com Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.