Skip to content

PROC_UpdateFields.DTO_Parameters

Class

apex
global inherited sharing class PROC_UpdateFields.DTO_Parameters

DTO for parameters to query and update records.

Since: 1.0


Fields

FieldDescription
global AccessLevel accessLevelExplicit AccessLevel for the bulk update commit, or null to inherit the flag-driven default resolved by DML_SharingProxy.defaultAccessLevel().
global Boolean allOrNothingIndicates if the update requires all-or-nothing behavior (default: false).
global String objectNameAPI name of the SObject to update (e.g., 'Account').
global QRY_Condition.Evaluable searchConditionsConditions to filter records for updating.
global List updateFieldsList of field updates to apply to the SObjects.

Field Details

accessLevel

apex
global AccessLevel accessLevel

Type: AccessLevel

Explicit AccessLevel for the bulk update commit, or null to inherit the flag-driven default resolved by DML_SharingProxy.defaultAccessLevel(). Framework utilities that own their lifecycle (e.g. UTIL_BulkUpdates) set this to AccessLevel.SYSTEM_MODE explicitly so the bulk commit is not gated on the invoking user's FLS. Subscribers calling PROC_UpdateFields directly may pass AccessLevel.USER_MODE to enforce their secure-by-default opt-in.

Since: 1.0

Example:

apex
AccessLevel mode = instance.accessLevel;

allOrNothing

apex
global Boolean allOrNothing

Type: Boolean

Indicates if the update requires all-or-nothing behavior (default: false).

Since: 1.0

Example:

apex
Boolean value = instance.allOrNothing;

objectName

apex
global String objectName

Type: String

API name of the SObject to update (e.g., 'Account').

Since: 1.0

Example:

apex
String value = instance.objectName;

searchConditions

apex
global QRY_Condition.Evaluable searchConditions

Type: QRY_Condition.Evaluable

Conditions to filter records for updating.

Since: 1.0

Example:

apex
QRY_Condition.Evaluable value = instance.searchConditions;

updateFields

apex
global List<PROC_UpdateFields.DTO_Field> updateFields

Type: List

List of field updates to apply to the SObjects.

Since: 1.0

Example:

apex
List<DTO_Field> value = instance.updateFields;