Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Navigational and Type Functions, 24 of 36
Set an object attribute.
sword OCIObjectSetAttr ( 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, CONST OCIInd null_status, CONST dvoid *attr_null_struct, CONST dvoid *attr_value );
The OCI environment handle initialized in object mode. See the description 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 instance.
The null structure of the object instance 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.
This function sets the attribute of the given object with the given value. The position of the attribute is specified as a path expression which is an array of names and an array of indexes.
For the path expression stanford.cs.stu[5].addr, the arrays will look like:
names = {"stanford", "cs", "stu", "addr"}
lengths = {8, 2, 3, 4}
indexes = {5}
This section describes the OCI pin unpin, and free functions.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|