The RE_Order.Record Apex class provides a wrapper
for the order sObject records.
Each instance wraps an RE_Order sObject record and provides methods to extract the child sObject records.
Namespace
cgcloud
Example Implementation
cgcloud.RE_Order orderWrapper = (cgcloud.RE_Order) params.get('order');
// Append the object to create a wrapper
cgcloud.RE_Order.Record myRecord = orderWrapper.append(
new MyRecord__c()
);
// Extract the SObject
MyRecord__c rec = (MyRecord__c) myRecord.getRecord();
myRecord.isNew(); // true
myRecord.isDeleted(); // false
myRecord.getId(); // A temporary SFDC Id
rec.Field1__c; // 'Hello'
rec.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()