The CWConnectorBusObj class gives a view of the business object to the Java connectors developers. The class defines methods for getting information about the business object definition, business object, and its attributes. It also includes methods to obtain the metadata of the business object, and methods for reading and modifying the business object instance. Each instance of CWConnectorBusObj represents a single business object. Any manipulations of the business object has to be from this class.
Table 122 summarizes the methods in the CWConnectorBusObj class.
Member method | Description | Page |
---|---|---|
areAllPrimaryKeysTheSame() | Determines if the attribute values in the primary key of a specified business object match those in the current business object. | areAllPrimaryKeysTheSame() |
compare() | Compares a specified business object with the current business object, based on the verb set, attribute count, application-specific information for the business object, and the attributes and attribute values. | compare() |
doVerbFor() | Invokes the business object handler to perform the verb processing for the active verb in the business object. | doVerbFor() |
dump() | Returns business object information in a readable format for logging and tracing. | dump() |
getAppText() | Retrieves the value of the AppSpecificInfo field associated with this business object definition or with a specified attribute. | getAppText() |
getAttrASIHashtable() | Parses the application-specific information for any attribute in a business object, given the attribute's name or its position in the business object's attribute list, into name/value pairs. | getAttrASIHashtable() |
getAttrCount() | Retrieves the number of attributes that are in the business object's attribute list. | getAttrCount() |
getAttrIndex() | Retrieves the ordinal position of a given attribute of a business object. | getAttrIndex() |
getAttrName() | Retrieves the name of an attribute that you specify by its position in the business object's attribute list. | getAttrName() |
getbooleanValue() | Retrieves the value of a boolean attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getbooleanValue() |
getBusinessObjectVersion() | Retrieves the version of the business object definition. | getBusinessObjectVersion() |
getBusObjASIHashtable() | Parses the application-specific information for a business object definition into name/value pairs. | getBusObjASIHashtable() |
getBusObjValue() | Retrieves the value of an attribute that contains a business object, given the attribute's name or its position in the business object's attribute list. | getBusObjValue() |
getCardinality() | Retrieves the cardinality of an attribute, given the attribute's name or its position in the business object's attribute list. | getCardinality() |
getDefault() | Retrieves the default value for this attribute, given the attribute's name or its position in the business object's attribute list. | getDefault() |
getDefaultboolean() | Retrieves the default value of a double attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getTypeNum() |
getDefaultdouble() | Retrieves the version of the business object definition. | getDefaultdouble() |
getDefaultfloat() | Retrieves the default value of a float attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getDefaultfloat() |
getDefaultint() | Retrieves the default value of a int attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getDefaultint() |
getDefaultlong() | Retrieves the default value of a long attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getDefaultlong() |
getDefaultString() | Retrieves the default value of a String attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getDefaultString() |
getdoubleValue() | Retrieves the value of a double attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getdoubleValue() |
getfloatValue() | Retrieves the value of a float attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getfloatValue() |
getintValue() | Retrieves the value of a int attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getintValue() |
getLocale() | Retrieves the locale associated with the business object. | getLocale() |
getlongValue() | Retrieves the value of a long attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getlongValue() |
getLongTextValue() | Retrieves the value of a longText attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getLongTextValue() |
getMaxLength() | Retrieves the maximum length of an attribute from the business object definition | getMaxLength() |
getName() | Retrieves the name of the business object definition that the current business object references. | getName() |
getObjectCount() | Retrieves the number of child business objects in an attribute that is a business object array. | getObjectCount() |
getParentBusinessObject() | Retrieves the parent business object of the current business object. | getParentBusinessObject() |
getStringValue() | Retrieves the value of a String attribute in a business object, given the attribute's name or its position in the business object's attribute list. | getStringValue() |
getSupportedVerbs() | Retrieves the supported verbs for the current business object. | getSupportedVerbs() |
getTypeName() | Retrieves the name of the attribute's data type, given the attribute's name or its position in the business object's attribute list. | getTypeName() |
getTypeNum() | Retrieves the numeric type code for the data type of an attribute, given the attribute's name or its position in the business object's attribute list. | getTypeNum() |
getVerb() | Retrieves the active verb for the business object. | getVerb() |
getVerbAppText() | Retrieves the value of the AppSpecificInfo field for a particular verb. | getVerbAppText() |
hasAllKeys() | Determines if the current business object has values for all its primary- and foreign-key attributes. | hasAllKeys() |
hasAllPrimaryKeys() | Determines if the current business object has values for all its primary-key attributes. | hasAllPrimaryKeys() |
hasAnyActivePrimaryKey() | Determines if the current business object has values for any primary-key attribute. | hasAnyActivePrimaryKey() |
hasCardinality() | Determines if the attribute has the same cardinality as a specified cardinality value, given the attribute's name or its position in the business object's attribute list. | hasCardinality() |
hasName() | Determines if the name of the attribute matches a specified name, given the attribute's name or its position in the business object's attribute list. | hasName() |
hasType() | Determines if the data type of the attribute matches a specified data type name. | hasType() |
isAttrPresent() | Determines if an attribute is present or not on the business object. | isAttrPresent() |
isBlank() | Determines if an attribute is a part of the foreign key of the business object, given the attribute's name or its position in the business object's attribute list. | isBlank() |
isForeignKeyAttr() | Determines if an attribute is a part of the foreign key of the business object, given the attribute's name or its position in the business object's attribute list. | isForeignKeyAttr() |
isIgnore() | Determines whether the value is the special Ignore value for the attribute with the specified name or at the specified position in the attribute list. | isIgnore() |
isKeyAttr() | Determines if an attribute is a part of the business object primary key, given the attribute's name or its position in the business object's attribute list. | isKeyAttr() |
isMultipleCard() | Determines if an attribute has multiple cardinality, given the attribute's name or its position in the business object's attribute list. | isMultipleCard() |
isObjectType() | Determines if an attribute's data type is an object type; that is, if it is a complex attribute (an array or a subobject). | isObjectType() |
isRequiredAttr() | Determines if an attribute is a required attribute for the business object, given the attribute's name or its position in the business object's attribute list. If the attribute is required, it must have a value. | isRequiredAttr() |
isType() | Determines if an attribute value has the same data type as a specified value. | isType() |
isVerbSupported() | Determines whether the verb passed to the method is supported by this business object definition. | isVerbSupported() |
objectClone() | Copies an existing business object. | objectClone() |
prune() | Removes the child business objects from the current (parent) business object and sets their attributes to null. | prune() |
removeAllObjects() | Removes all child business objects in an attribute that is a business object array. | removeAllObjects() |
removeBusinessObjectAt() | Removes a child business object at a specified position in a business object array. | removeBusinessObjectAt() |
setAttrValues() | Sets the attributes for the current business object based on the values in a vector. | setAttrValues() |
setbooleanValue() | Sets the value of a boolean attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setbooleanValue() |
setBusObjValue() | Sets the value of an attribute that contains a business object to a specified value, given the attribute's name or its position in the business object's attribute list. | setBusObjValue() |
setDefaultAttrValues() | Sets default values for attributes which currently have the Blank or Ignore attribute values. | setDefaultAttrValues() |
setdoubleValue() | Sets the value of a double attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setdoubleValue() |
setfloatValue() | Sets the value of a float attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setfloatValue() |
setintValue() | Sets the value of an int attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setintValue() |
setLocale() | Sets the locale associated with the business object. | setLocale() |
setLongTextValue() | Sets the value of an longText attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setLongTextValue() |
setStringValue() | Sets the value of a String attribute to a specified value, given the attribute's name or its position in the business object's attribute list. | setStringValue() |
setVerb() | Sets the active verb for a business object. | setVerb() |
As Table 122 shows, the CWConnectorBusObj class combines the following business object information into a single class:
getObjectCount() | removeBusinessObjectAt() |
removeAllObjects() |