getVerb()

Retrieves the active verb for the business object.

Syntax

char * getVerb();
  

Return values

The active verb for the business object. If the verb is not set in the business object, the method returns NULL.

Notes

The business object definition contains the list of verbs that the business object supports. The getVerb() method enables you to determine which verb is active for the current business object instance.

Examples

char * verb = pObj->getVerb();
  
if ((verb!=NULL) && (strcmp(verb,"Create")) == 0 {
     // perform the create operation
     ...
  }
  

See also

doVerbFor(), setVerb()

Copyright IBM Corp. 1997, 2003