You can access many features of the Salesforce user interface programmatically in
Apex, and you can integrate with external SOAP and REST Web services. You can run Apex code
using a variety of mechanisms. Apex code runs in atomic transactions.