• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Introduction to Apex

Force.com Apex code is a strongly typed programming language that
executes on the Force.com platform. Apex is used to add business logic to applications,
to write data base type triggers, and to program controllers in the user interface layer. It
has a tight integration with the data base and query language, good web service support,
and includes features such as futures and governors for execution in a multitenant

Integrated with DML, Inline, SOQL and SOSL and holds the ability to do bulk processing.
Data focused.
Hosted by the Force.com platform and knows multitenancy.
Automatically upgradeable.
The architecture is the same for developer and End user perspectives.


Advantages of Multitenancy:

Low cost.
Single set of Hardware Resources.
User satisfaction.
Improved Quality.
Customer Retention.
Collaboration and Integration.
Error Free.
Easily Customizable and Upgradable.


When should we use Apex:

Create Web Services.
Create Email services
Perform complex validation over multiple objects.
Create complex business process that are not supported by workflow.
Create custom transactional logic.
Attach custom logic to another Application.


How does Apex work?

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




The above diagram describes about the Apex compiled, stored and run entirely on the Force.com platform.
When a developer writes and saves Apex code to the Platform, The platform application server first compiles the code into an abstract set of instructions that can be understood by the Apex run time interpreter and then saves those instructions as Metadata.
When an end user triggers the execution of Apex, perhaps by clicking a button or accessing a Visual force page the platform application server retrieves complied instructions from the Meta data and sends them through the runtime interpreter before
running the result.
The end user observes no differences in execution time from standard platform requests.

Review Date
Reviewed Item
Introduction to Apex
Author Rating

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Introduction to Apex"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.