This function searches the database based on an exact match of index values.
MCO_RET classname_indexname_find( /*IN*/ mco_trans_h trans, /*IN*/ <type> [*]param1, [/*IN*/ uint2 len1,], [/*IN*/ <type> [*]param2, [/*IN*/ uint2 len2,] ...], /*OUT*/ classname *handle );
trans
mco_trans_start().param1
type, where type is the data type of the classname.fieldname
component of the index. If the index component is char or string, the param is a char *.len1
param1 is a char or string, len1 specifies the length of the input buffer.param2
len2
param2 thru paramN are char or string, each such parameter argument is
followed by a lenN parameter to specify the length of the paramN buffer.handle
classname which will reference the object located by the find method.Find methods search the database based on an exact match of index values. Since exactly one object can be returned, a pointer to an object handle is populated with the reference to the found object.
MCO_S_OK
MCO_S_NOTFOUND
MCO_ERR_COMMON