classname_oid_find

This function returns a handle to the object referenced by its OID.

Prototype

 
    MCO_RET	classname_oid_find(	/*IN*/ mco_trans_h trans, 
                      /*IN*/ const dbname_oid * oid,
                      /*OUT*/ classname * handle );
 

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 to be located
handle A pointer to a class handle

Description

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 */

Return Codes

MCO_S_OK The object was located successfully
MCO_S_NOTFOUND There are no objects referenced by the OID
MCO_ERR_COMMON  

Related Topics Link IconRelated Topics