Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Navigational and Type Functions, 17 of 36
Retrieves an object attribute.
sword OCIObjectGetAttr ( OCIEnv *env, OCIError *err, dvoid *instance, dvoid *null_struct, struct OCIType *tdo, CONST OraText **names, CONST ub4 *lengths, CONST ub4 name_count, CONST ub4 *indexes, CONST ub4 index_count, OCIInd *attr_null_status, dvoid **attr_null_struct, dvoid **attr_value, struct OCIType **attr_tdo );
The OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate()
and OCIInitialize()
for more information.
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
Pointer to an object.
The null structure of the object or array.
Pointer to the TDO.
Array of attribute names. This is used to specify the names of the attributes in the path expression.
Array of lengths of attribute names, in bytes.
Number of element in the array names
.
Not currently supported. Pass as (ub4 *)0
.
Not currently supported. Pass as (ub4)0
.
The null status of the attribute if the type of attribute is primitive.
The null structure of an object or collection attribute.
Pointer to the attribute value.
Pointer to the TDO of the attribute.
This function gets a value from an object or from an array. If the parameter instance
points to an object, then the path expression specifies the location of the attribute in the object. It is assumed that the object is pinned and that the value returned is valid until the object is unpinned.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|