fferpcore.SObjectDataTargetglobal with sharing class SObjectDataTarget implements DataTargetRoot, DataTargetRoot2 Implementation of fferpcore.DataTargetRoot for a given SObjectType in the database. This class implements the following interfaces: Methods
SObjectDataTargetglobal SObjectDataTarget(SObjectType objectType, String correlationField) Construct an SObjectDataTarget. Input Parameters
SObjectDataTargetglobal SObjectDataTarget(SObjectType objectType, List<String> correlationFields) Construct an SObjectDataTarget. Input Parameters
withSharingModelglobal fferpcore.SObjectDataTarget withSharingModel(fferpcore.SharingModel sharingModelValue) Specify the sharing model to use when querying the database for existing records. Input Parameters
Return ValueThe same SObjectConsumer instance to allow further method calls. withDryRunglobal fferpcore.SObjectDataTarget withDryRun(Boolean dryRun) Prevent the created SObjects from being committed to the database. Input Parameters
Return ValueThe same SObjectDataTarget instance to allow further method calls. withMaximumChildCountglobal fferpcore.SObjectDataTarget withMaximumChildCount(Integer maxChildCount, String childCountField) Specify the maximum number of child records that each parent target record can have. Input Parameters
Return ValueThe same SObjectDataTarget instance to allow further method calls. getCaptureResultglobal fferpcore.SObjectDataTarget.CaptureResult getCaptureResult() Access the captured data from the previously completed work scope. Return ValueCaptured data from the previously completed work scope. requireFieldglobal void requireField(String name, fferpcore.Intent intent) Missing keys will be reported as errors in commit results and virtual data object events. This is used when data is required for reading, for example as a virtual data object. Use cases that create missing records will leave this unset. Return ValueThis SObjectDataTarget for chaining. requireLookupglobal fferpcore.DataTarget requireLookup(String name, fferpcore.Intent intent) requireChildrenglobal fferpcore.DataTarget requireChildren(String name, fferpcore.Intent intent) createWorkScopeglobal fferpcore.DataTargetWork createWorkScope() queryByKeySetglobal fferpcore.TargetObjectMap queryByKeySet(Set<Object> keySet) queryByKeySetWithExternalCorrelationglobal fferpcore.TargetObjectMap queryByKeySetWithExternalCorrelation(Map<Object, Object> correlationKeysBySearchValue) queryByKeySetWithExternalCorrelationsglobal fferpcore.TargetObjectMap queryByKeySetWithExternalCorrelations(Map<List<Object> , List<Object>> correlationKeysBySearchValues) hasAccessglobal fferpcore.HasAccessResult hasAccess(List<String> targetPath) fferpcore.SObjectDataTarget.CaptureResultglobal interface CaptureResult Data captured from a completed work scope. MethodsgetRecordsByCorrelationIdMap<Object, SObjectTarget> getRecordsByCorrelationId() Return ValueCreated or updated target objects keyed by their correlation ID. |