In the preceding chapter, you learned the basics of the Apex language for developing business logic. This chapter extends your knowledge of Apex to reach more features of the Force.com platform. The following topics are covered:
Aggregate SOQL queries—Aggregate queries operate on groups of records, summarizing data declaratively at the database level rather than in Apex.
Additional SOQL features—SOQL includes features for querying related objects and multi-select picklists.
Salesforce Object Search Language (SOSL)—SOSL is a full-text search language, a complement to SOQL, that allows a single query to search the textual content of many database objects and fields.
Transaction processing—Apex includes database methods to enable the partial success of transactions, saving and restoring of database state, and locking of records returned from a query.
Apex managed sharing—Managed sharing allows programmatic control over record-level sharing.
Sending and receiving email—Apex programs can send and receive email with support for text and binary attachments and templates for standardizing outbound messages.
Dynamic Apex—Execute database queries that aren’t hard-coded into your programs, query Force.com for your database’s metadata, and write generic code to manipulate database records regardless of their type.
Custom settings in Apex—Data from custom settings can be retrieved, created, updated, and deleted from Apex.
Sample application—The Services Manager sample application is enhanced to send email notifications to users when a business event occurs.
18.224.57.43