Thursday, March 14, 2013

What is Apex?

Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Force.complatform server in conjunction with calls to the Force.com​ API.

Apex code can be initiated by Web service requests and from triggers on objects.

All Apex runs entirely on-demand on the Force.com platform, as shown in the following architecture diagram:

Apex is compiled, stored, and run entirely on the Force.com platform.


Apex provides built-in support for common Force.com platform idioms, including:
  • Data manipulation language (DML) calls, such as INSERTUPDATE, and DELETE, that include built-in DmlException handling
  • Inline Salesforce Object Query Language (SOQL) and Salesforce Object Search Language (SOSL) queries that return lists of sObject records
  • Looping that allows for bulk processing of multiple records at a time
  • Locking syntax that prevents record update conflicts
  • Custom public Force.com API calls that can be built from stored Apex methods
  • Warnings and errors issued when a user tries to edit or delete a custom object or field that is referenced by Apex

No comments:

Post a Comment