The methods documented in this chapter operate on objects of the BusObj class.
The first two sections of this chapter explain the exceptions listed with these methods and how to specify attributes and child business objects in a hierarchical business object. The rest of the sections describe the methods listed in Table 92.
BusObj method summaryMethod | Description | Page |
---|---|---|
copy() | Copy all attribute values from the input business object to this one. | copy() |
duplicate() | Create a business object (BusObj object) exactly like this one. | duplicate() |
equalKeys() | Compare this business object's key attribute values with those in the input business object. | equalKeys() |
equals() | Compare this business object's attribute values with those in the input business object, including child business objects. | equals() |
equalsShallow() | Compare this business object's attribute values with those in the input business object, excluding child business objects from the comparison. | equalsShallow() |
exists() | Check for the existence of a business object attribute with a specified name. | exists() |
getBoolean(), getDouble(), getFloat(), getInt(), getLong(), get(), getBusObj(), getBusObjArray(), getLongText(), getString() | Retrieve the value of a single attribute from a business object. | getBoolean(), getDouble(), getFloat(), getInt(), getLong(), get(), getBusObj(), getBusObjArray(), getLongText(), getString() |
getLocale() | Retrieve the locale of the business object's data. | getLocale() |
getType() | Retrieve the name of the business object definition on which this business object was based. | getType() |
getVerb() | Retrieve this business object's verb. | getVerb() |
isBlank() | Find out whether the value of an attribute is set to a zero-length string. | isBlank() |
isKey() | Find out whether a business object's attribute is defined as a key attribute. | isKey() |
isNull() | Find out whether the value of a business object's attribute is null. | isNull() |
isRequired() | Find out whether a business object's attribute is defined as a required attribute. | isRequired() |
keysToString() | Retrieve the values of a business object's primary key attributes as a string. | keysToString() |
set() | Set a business object's attribute to a specified value of a particular data type. | set() |
setContent() | Set the contents of this business object to another business object. | setContent() |
setDefaultAttrValues() | Set all attributes to their default values. | setDefaultAttrValues() |
setKeys() | Set the values of this business object's key attributes to the values of the key attributes in another business object. | setKeys() |
setLocale() | Set the locale of the current business object. | setLocale() |
setVerb() | Set the verb of a business object. | setVerb() |
setVerbWithCreate() | Create the instance of the child business object and set its verb. | setVerbWithCreate() |
setWithCreate() | Set a business object's attribute to a specified value of a particular data type, creating an object for the value is one does not already exist. | *** |
toString() | Return the values of all attributes in a business object as a string. | toString() |
validData() | Checks whether a specified value is a valid type for a specified attribute. | validData() |