ChildTransformMappingglobal class ChildTransformMapping implements TransformMapping An implementation of a TransformMapping 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, ChildCorrelationStrategy correlationStrategy) Create a ChildTransformMapping. Input Parameters
Sample DataString sourceKey: 'SomeSourceRelationship__r' String targetKey: 'SomeTargetRelationship__r' ChildTransformMappingglobal ChildTransformMapping(String targetKey, ChildCorrelationStrategy correlationStrategy) Create a ChildTransformMapping. Input Parameters
Sample DataString targetKey: 'SomeTargetRelationship__r' withMappingglobal ChildTransformMapping withMapping(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 ChildTransformMapping withMapping(String targetChildType, 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 ChildTransformMapping withFilter(TransformFilter filter) Provide a 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 ChildCorrelationStrategy getCorrelationStrategy() Return ValueThe strategy that dictates how the child records are synchronized. getMappingsglobal Map<String, List<TransformMapping>> getMappings() Return ValueA map containing lists of all the TransformMappings keyed on their target child type. getFilterglobal TransformFilter getFilter() Return ValueAn instance of a TransformFilter that defines the filter logic. |