RE_Order.Record Class

The RE_Order.Record Apex class provides a wrapper for the order sObject records.

Namespace

Each instance wraps an RE_Order sObject record and provides methods to extract the child sObject records.

1cgcloud

Example Implementation

1cgcloud.RE_Order orderWrapper = (cgcloud.RE_Order) params.get('order');
2
3// Append the object to create a wrapper
4cgcloud.RE_Order.Record myRecord = orderWrapper.append(
5  new MyRecord__c()
6);
7
8// Extract the SObject
9MyRecord__c rec = (MyRecord__c) myRecord.getRecord();
10
11myRecord.isNew(); // true
12myRecord.isDeleted(); // false
13myRecord.getId(); // A temporary SFDC Id
14rec.Field1__c; // 'Hello'
15rec.Field2__c; // 'World!'

Supported Methods

isDeleted()

Indicates if the record is flagged for deletion or the record is updated during save.

API Version
59.0
Signature
global Boolean isDeleted()

isNew()

Indicates if the record is new or already exists in the database.

API Version
59.0
Signature
global Boolean isNew()

getId()

Returns the temporary ID for the wrapped record. The order save process uses temporary IDs for records that are still not committed to the database.

API Version
59.0
Signature
global Boolean getId()

getOriginalRecord()

Returns the wrapped sObject record. You can update the returned record field values.

API Version
59.0
Signature
global Boolean getRecord()