Skip to content

Instantly share code, notes, and snippets.

@DataSolveProblems
Created September 15, 2019 16:04
Show Gist options
  • Save DataSolveProblems/0d61333a5d4ef8c994ca1447a7636a37 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/0d61333a5d4ef8c994ca1447a7636a37 to your computer and use it in GitHub Desktop.
public class AccountsSelector extends fflib_SObjectSelector {
public List<Schema.SObjectField> getSObjectFieldList() {
return new List<Schema.SObjectField> {
Account.ID, Account.Description, Account.Name, Account.AnnualRevenue
};
}
public Schema.SObjectType getSObjectType() {
return Account.SObjectType;
}
public List<Account> selectById(Set<ID> idSet) {
List<Account> acctList = new List <Account>();
acctList = (List<Account>) selectSObjectsById(idSet);
return acctList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment