The interface structure was incompatible so had to remove it and replace it again with fflib_Objects
2.6 KiB
fflib-apex-extensions
Primitive Domain - SObject
This class should be used to extend Domain classes.
public class Accounts extends SObjects implements IAccounts
{
...
}
Method reference
Public methods
Protected methods
getSObjectById
Returns the contents of the Domain by their primary Key ('Id' field)
public Map<Id, SObject> getSObjectById()
getRecords
Returns only the SObjects from the domain matching the given Ids.
public List<SObject> getRecords(Ids ids)
public List<SObject> getRecords(Set<Id> ids)
Return the SObject records contained in the domain matching the criteria
public List<SObject> getRecords(fflib_Criteria criteria)
addError
Adds an error message to the records in the domain
protected void addError(String message)
protected void addError(Schema.SObjectField sObjectField, String message)
clearField
Clear the field value on all the records of the domain
protected void clearField(Schema.SObjectField sObjectField)
protected void clearFields(Set<Schema.SObjectField> sObjectFields)
getDateFieldValues
Get the Date values from the given SObjectField, null values will be omitted. If a criteria is provided, only the value of the records matches the criteria will be returned.
protected Dates getDateFieldValues(Schema.SObjectField sObjectField)
protected Dates getDateFieldValues(Schema.SObjectField sObjectField, fflib_Criteria criteria)
getDateTimeFieldValues
Get the Datetime values from the given SObjectField, null values will be omitted. If a criteria is provided, only the value of the records matches the criteria will be returned.
protected DateTimes getDateTimeFieldValues(Schema.SObjectField sObjectField)
protected DateTimes getDateTimeFieldValues(Schema.SObjectField sObjectField, fflib_Criteria criteria)
getDecimalFieldValues
Get the Decimal values from the given SObjectField, null values will be omitted. If a criteria is provided, only the value of the records matches the criteria will be returned.
protected Decimals getDecimalFieldValues(Schema.SObjectField sObjectField)
protected Decimals getDecimalFieldValues(Schema.SObjectField sObjectField, fflib_Criteria criteria)