Foundations Apex API Developer Reference

fferpcore.SObjectFieldPath

global with sharing class SObjectFieldPath

Contains a list of SObject fields connected via lookups.

Methods

SObjectFieldPath

global SObjectFieldPath(SObjectType origin, String queryString)

SObjectFieldPath

global SObjectFieldPath(SObjectType origin, SObjectField field)

SObjectFieldPath

global SObjectFieldPath(SObjectType origin, List<SObjectField> path)

getPath

global List<SObjectField> getPath()

Return Value

The list of SObject fields.

getRootSObjectType

global SObjectType getRootSObjectType()

Return Value

The SObjectType at which the path begins.

getQueryString

global String getQueryString()

Return Value

A SOQL field string that can be used to read all necessary fields in order to reach the data.

append

global fferpcore.SObjectFieldPath append(SObjectField newField)

Return Value

A copy of the path with the given field added to the end.

append

global fferpcore.SObjectFieldPath append(List<SObjectField> additionalPath)

Return Value

A copy of the path with the given fields added to the end.

readValue

global Object readValue(SObject record)

Return Value

The data contained in the last field of the path on the given record.

isAccessible

global Boolean isAccessible()

Return Value

True if the user has permission to read all of the fields in the path.

isUpdateable

global Boolean isUpdateable()

Return Value

True if the user has read permission for all the fields in the path, and write permission for the last field in the path.

isIndirect

global Boolean isIndirect()

Return Value

True if the path contains multiple fields.

getLastField

global SObjectField getLastField()

Return Value

The last field of the path.

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