This function returns a handle to the object referenced by its OID.
MCO_RET classname_oid_find( /*IN*/ mco_trans_h trans, /*IN*/ const dbname_oid * oid, /*OUT*/ classname * handle );
trans |
A transaction handle returned by |
oid | A pointer to an instance of the generated typedef dbname_oid, which contains the OID of the object to be located |
handle | A pointer to a class handle |
This function will return a handle to the object referenced by OID. Handles and class codes are found in the header file following the comment:
/* Handles and Class Codes */
MCO_S_OK | The object was located successfully |
MCO_S_NOTFOUND | There are no objects referenced by the OID |
MCO_ERR_COMMON |