fferpcore.ChildTransformMappingglobal inherited sharing class ChildTransformMapping implements TransformMapping, TransformMappingWithTarget A mapping for use with the fferpcore.TransformService that creates child records on the target object from child data on the source object. This class implements the following interfaces: Methods
ChildTransformMappingglobal ChildTransformMapping(String sourceKey, String targetKey, fferpcore.ChildCorrelationStrategy correlationStrategy) Create a ChildTransformMapping. Input Parameters
Sample DataString sourceKey: 'SomeSourceRelationship__r' String targetKey: 'SomeTargetRelationship__r' ChildTransformMappingglobal ChildTransformMapping(String targetKey, fferpcore.ChildCorrelationStrategy correlationStrategy) Create a ChildTransformMapping. Input Parameters
Sample DataString targetKey: 'SomeTargetRelationship__r' withMappingglobal fferpcore.ChildTransformMapping withMapping(fferpcore.TransformMapping mapping) Add a nested mapping to be processed on each child record in order to provide data to the created child records. Input Parameters
Return ValueThe ChildTransformMapping instance to allow further method calls. withMappingglobal fferpcore.ChildTransformMapping withMapping(String targetChildType, fferpcore.TransformMapping mapping) Add a nested mapping to be processed on each child record in order to provide data to the created child records. Input Parameters
Return ValueThe ChildTransformMapping instance to allow further method calls. withFilterglobal fferpcore.ChildTransformMapping withFilter(fferpcore.TransformFilter filter) Provide a fferpcore.TransformFilter to filter the source child records. Input Parameters
Return ValueThe ChildTransformMapping instance to allow further method calls. getSourceKeyglobal String getSourceKey() Return ValueThe key that identifies the relationship that contains the source child records. getTargetKeyglobal String getTargetKey() Return ValueThe key that identifies the destination relationship for which to create child records. getCorrelationStrategyglobal fferpcore.ChildCorrelationStrategy getCorrelationStrategy() Return ValueThe strategy that dictates how the child records are synchronized. getMappingsglobal Map<String, List<fferpcore.TransformMapping>> getMappings() Return ValueA map containing lists of all the TransformMappings keyed on their target child type. getFilterglobal fferpcore.TransformFilter getFilter() Return ValueAn instance of a TransformFilter that defines the filter logic. |