setVerb()

Sets the active verb of the current business object.

Syntax

void setVerb(char * newVerb);

Parameters

newVerb [in]
Is a verb that is in the verb list of the business object definition to which the business object refers.

Return values

None.

Notes

The business object definition (BusObjSpec instance) contains the list of verbs that the business object supports. The verb that you set as the active verb must be on this list. Only one verb is active at a time for a business object.

Business objects typically support the Create, Retrieve, and Update verbs. A business object might support additional verbs, such as Delete. Every connector that supports a business object must implement all the verbs that it supports.

Examples

BusinessObject *pObj;
...
pObj = new BusinessObject("Customer");
pObj->setVerb("Create");

See also

doVerbFor(), getVerb()

Copyright IBM Corp. 1997, 2004