Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Force.com Enterprise Architecture
  • Table Of Contents Toc
  • Feedback & Rating feedback
Force.com Enterprise Architecture

Force.com Enterprise Architecture

By : Andrew Fawcett
4.9 (10)
close
close
Force.com Enterprise Architecture

Force.com Enterprise Architecture

4.9 (10)
By: Andrew Fawcett

Overview of this book

Successful enterprise applications require planning, commitment, and investment in understanding the best practices, processes, tools, and features available. This book will teach you how to architect and support enduring applications for enterprise clients with Salesforce by exploring how to identify architecture needs and design solutions based on industry standard patterns. As your development team grows, managing the development cycle with more robust application life cycle tools and using approaches such as Continuous Integration becomes increasingly important. There are many ways to build solutions on Force.com—this book cuts a logical path through the steps and considerations for building packaged solutions from start to finish, covering all aspects from engineering to getting your application into the hands of your customers, and ensuring that they get the best value possible from your Force.com application.
Table of Contents (13 chapters)
close
close
12
Index

Implementing the custom query logic


If we take a look at the implementation of the fflib_SObjectSelector.selectSObjectById base class method (at the time of writing this book), it is quite simple and gives a template as to the way we can implement custom Selector methods; it also highlights other base class methods we can use:

public List<SObject> selectSObjectsById(Set<Id> idSet)
{
  assertIsAccessible();
  return Database.query(buildQuerySObjectById());
}
private String buildQuerySObjectById()
{ 
  return String.format(
    'SELECT {0} FROM {1} WHERE id in :idSet ORDER BY {2}', 
     new List<String> 
       {getFieldListString(),getSObjectName(),getOrderBy()}); 
}

The getFieldListString method calls the getSObjectFieldList and getSObjectFieldSetList methods implemented in the preceding code. It basically takes the SObjectField lists that result from these methods and builds a single comma-delimited list of fields ready to be inserted into the SOQL query string. Also, note...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Force.com Enterprise Architecture
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon