DataObject Class
The DataObject class is used by Zuora Rules Engine to represent a record. The primary functions of DataObjects are to set and retrieve fields from their objects.
DataObject Class Global Methods
The following methods can be called from instances of the zqu.DataObject class.
| Return Type | Methid | Description |
|---|---|---|
| String | getObjectType() | Returns the API Name of the SObject represented by this DataObject. |
| Object | get | Retrieves a field value from the record. |
| void | put | Sets a field value on the record. |
| void | putParent | Links a parent record. |
| void | addChild | Links a child record. |
| void | removeChild | Unlinks a child record. |
| zqu.DataObject | getParent | Retrieves a parent record, by relationship name. |
| List <zqu.DataObject> | getChildren | Retrieves all child records, by object name. |
| void | flagAdded() | Indicates a record was just added. |
| Boolean | isAdded() | Indicates a record was just added. |
| void | flagRequired() | Indicates an added record cannot be removed. |
| Boolean | isRequired() | Indicates an added record cannot be removed. |
| void | flagRemoved() | Indicates a record was just removed. |
| Boolean | isRemoved() | Indicates a record was just removed. |
| String | describe() | Readable representation of the record. |
