dbname_get_class_code

This function returns the class code of an object (referenced by its OID).

Prototype

 
    MCO_RET	dbname_get_class_code( /*IN*/ mco_trans_h trans, 
                       /*IN*/ const dbname_oid *oid, 
                       /*OUT*/ uint2 *class);
 

Arguments

trans A transaction handle returned by mco_trans_start()
oid A pointer to an instance of the generated typedef dbname_oid, which contains the OID of the object whose class is to be identified
class A pointer to a uint2 that will receive the class code of the object referenced by oid

Description

This function will return the numeric class code from the generated interface header file. Handles and class codes are found in the dbname.h header file following the comment :

/* Handles and Class Codes */

Return Codes

MCO_S_OK The class code was determined successfully
MCO_S_NOTFOUND There are no objects referenced by the OID given
MCO_ERR_COMMON  

Related Topics Link IconRelated Topics