apex-enterprise-patterns / fflib-apex-common

Common Apex Library supporting Apex Enterprise Patterns and much more!
BSD 3-Clause "New" or "Revised" License
913 stars 517 forks source link

Feature/fluent selector constructor #250

Closed wimvelzeboer closed 4 years ago

wimvelzeboer commented 4 years ago

This will add a more fluent design to the fflib_SObjectSelector class constructor, so that you can configure it without having to use the Boolean constructor paramaters.

AccountsSelector selector = new AccountsSelector().enforceFLS();

Added methods are: enforceFLS(); includeFieldSetFields(); ignoreCRUD(); unsortedSelectFields();

afawcett commented 4 years ago

@wimvelzeboer oooh thanks for this, been wanting this for a while!

foxysolutions commented 4 years ago

@wimvelzeboer nice enrichment! Do you expect test classes to be added? To ensure coverage of those new sweet functions? :)