BusObj class

The methods documented in this chapter operate on objects of the BusObj class. These objects represent InterChange Server Express business objects.

Note:
The BusObj class is used for both collaboration development and mapping; check the Notes section for each method's usage issues.

Table 59 lists the methods of the BusObj class.

Table 59.
BusObj method summary
Method Description Page
copy() Copy all attributes 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() Retrieves 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()
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()
setVerb() Set the verb of a business object. setVerb()
setWithCreate() Set a business object's attribute to a value of a specified data type. setWithCreate()
toString() Return the values of all attributes in a business object as a string. toString()
validData() Checks whether a specified value is a valid data type for a specified attribute. validData()

Copyright IBM Corp. 2003, 2004