Fix styling (#93)
* Fix styling * Fix dependency with apex-common, A method that exists in apex-extensions, is now added to the apex-commons. IMPORTANT: this is introducing a breaking change, as the second paramter of the method is flipped in meaning. From `omitNulls` to `includeNulls`. * New package version 0.11.0-1-code-reformat created * New package version 0.11.0-2-code-reformat created * New package version 0.11.0-3-code-reformat created --------- Co-authored-by: WimVelzeboer <wvelzeb1@its.jnj.com> Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
co-authored by
WimVelzeboer
github-actions
parent
98b0f97e24
commit
4a734ee822
@@ -52,7 +52,8 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
* Provides access to the Trigger.new and allowing it to be mocked in unit-tests
|
||||
*/
|
||||
@TestVisible
|
||||
protected List<SObject> records {
|
||||
protected List<SObject> records
|
||||
{
|
||||
get
|
||||
{
|
||||
if (records == null)
|
||||
@@ -88,8 +89,10 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides access to the data represented by this Trigger Context
|
||||
**/
|
||||
* Provides access to the data represented by this Trigger Context
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public System.TriggerOperation getTriggerOperation()
|
||||
{
|
||||
return triggerOperation;
|
||||
@@ -131,18 +134,26 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects whether any values in context records have changed for given field as string
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
**/
|
||||
* Detects whether any values in context records have changed for given field as string
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
*
|
||||
* @param fieldName
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public List<SObject> getChangedRecords(String fieldName)
|
||||
{
|
||||
return getChangedRecords(new Set<String> {fieldName});
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects whether any values in context records have changed for given fields as strings
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
**/
|
||||
* Detects whether any values in context records have changed for given fields as strings
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
*
|
||||
* @param fieldNames
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public List<SObject> getChangedRecords(Set<String> fieldNames)
|
||||
{
|
||||
List<SObject> changedRecords = new List<SObject>();
|
||||
@@ -167,6 +178,10 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
/**
|
||||
* Detects whether any values in context records have changed for given field as token
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
*
|
||||
* @param fieldToken
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public List<SObject> getChangedRecords(Schema.SObjectField fieldToken)
|
||||
{
|
||||
@@ -176,6 +191,10 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
/**
|
||||
* Detects whether any values in context records have changed for given fields as tokens
|
||||
* Returns list of SObject records that have changes in the specified fields
|
||||
*
|
||||
* @param fieldTokens
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public List<SObject> getChangedRecords(Set<Schema.SObjectField> fieldTokens)
|
||||
{
|
||||
@@ -200,6 +219,8 @@ public virtual inherited sharing class fflib_TriggerContext
|
||||
|
||||
/**
|
||||
* Provides access to Trigger.oldMap or the mock when configured in a unit-test
|
||||
*
|
||||
* @return
|
||||
**/
|
||||
public Map<Id, SObject> getExistingRecords()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user