Foundations Apex API Developer Reference

fferpcore.ChildTransformMapping

global class ChildTransformMapping implements TransformMapping

An implementation of a fferpcore.TransformMapping that creates child records on the target object from child data on the source object.

This class implements the following interfaces:

Methods

ChildTransformMapping

global ChildTransformMapping(String sourceKey, String targetKey, fferpcore.ChildCorrelationStrategy correlationStrategy)

Create a ChildTransformMapping.
The possible source and target keys are dictated by the source and target contexts, respectively.
For example, the fferpcore.Context.SObjectContext requires names of SObject child relationships.

Input Parameters

Name Type Description
sourceKey String The key that identifies the relationship that contains the source child records.
targetKey String The key that identifies the destination relationship for which to create child records.
correlationStrategy fferpcore.ChildCorrelationStrategy The strategy that dictates how the child records are synchronized.

Sample Data

String sourceKey: 'SomeSourceRelationship__r'
String targetKey: 'SomeTargetRelationship__r'

withMapping

global 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

Name Type Description
mapping fferpcore.TransformMapping The TransformMapping to be applied to each child record.

Return Value

The ChildTransformMapping instance to allow further method calls.

© Copyright 2009–2021 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.