Skip to content

Commit 1816cc6

Browse files
John M. DanielJohn M. Daniel
authored andcommitted
Updated the "selectById" method to utilized the framework's "selectSObjectsById" method as is typical for this method in selectors.
1 parent b175dc6 commit 1816cc6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sfdx-source/apex-common-samplecode/main/classes/selectors/PricebookEntriesSelector.cls

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ public class PricebookEntriesSelector extends fflib_SObjectSelector
5353

5454
public List<PricebookEntry> selectById(Set<ID> idSet)
5555
{
56-
assertIsAccessible();
57-
String query = String.format('select {0},{3},{4} FROM {1} WHERE id in :idSet order by {2}',
58-
new List<String>{
59-
getFieldListString(),
60-
getSObjectName(),
61-
getOrderBy()
62-
});
63-
return (List<PricebookEntry>) Database.query(query);
56+
return (List<PricebookEntry>) selectSObjectsById(idSet);
6457
}
6558
}

0 commit comments

Comments
 (0)