ERP Apex API Developer Reference

fferpcore.TargetObject

global interface TargetObject

This class represents a Target Object that can receive data.

Methods

get

Object get(String fieldName)

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

The current value associated with the given field name.

put

void put(String fieldName, Object value)

Set a value for the given field.

Input Parameters

Name Type Description
fieldName String The name of the field.
value Object The value to set.

getLookup

TargetObject getLookup(String lookupName)

Input Parameters

Name Type Description
lookupName String The name of the lookup.

Return Value

The Target Object navigated by the given Lookup. Returns null if the lookup is empty. A TargetObject may choose to lazy instantiate a lookup value if the DataTarget supports creation of lookups.

getChildren

TargetObjectList getChildren(String fieldName)

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

The list Target Objects navigated by the given child list. Returns an empty list if there are no children.

getDataType

DataType getDataType(String fieldName)

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

The DataType of the given field.

destroy

void destroy()

Request that this Target Object is destroyed. Actual destruction may not occur immediately. This means that target objects that are destroyed may be returned by subsequent queries.

isDestroyed

Boolean isDestroyed()

Return Value

True if the Target Object has been marked as Destroyed.

preventSave

void preventSave()

Prevent changes to this Target Object being saved. This applies to this Target Object and all Target Objects navigated through getLookup() and getChildren(). It does not apply to parents of this Target Object.

© Copyright 2009–2019 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.