Created
September 15, 2019 16:04
-
-
Save DataSolveProblems/0d61333a5d4ef8c994ca1447a7636a37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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