Standard features of the Selector base class

The fflib_SObjectSelector base class contains additional functionality to provide more query consistency and integration with the platform. This applies to the preceding selectSObjectsById method as well as your own. The following sections highlight each of these features.

You can, of course, extend the standard features of this base class further. Perhaps there is something you want all your queries to consider, a common field or aspect to your schema design, or a feature that is common to most of your selectors. In this case, create your own base class and have your selectors extend that, as follows:

public inherited sharing abstract class ApplicationSelector 
   extends fflib_SObjectSelector 
{ 
// Add your common methods here } public class RacesSelector extends ApplicationSelector { // Methods using methods from both base classes }

The preceding code samples illustrate how and where to place code that is both common (in the ApplicationSelector class) and specific (in the RaceSelector class) to your query logic throughout your application. In the following sections, we will use the ApplicationSelector class to customize the behavior of all Selector classes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.130.13