10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Attribute Reference<br />

Table 6–15 Attributes Belonging to Arguments / Results (Cont.)<br />

Attribute Description Attribute Datatype<br />

ATTR_POSITION Position of the argument in the argument<br />

list. Always returns 0.<br />

ATTR_TYPECODE Typecode<br />

Refer to Notes on Types and Attributes on<br />

page 6-3.<br />

ATTR_DATA_TYPE Datatype of the argument<br />

Refer to Notes on Types and Attributes on<br />

page 6-3.<br />

ATTR_DATA_SIZE Size of the datatype of the argument. This<br />

length is returned in bytes and not<br />

characters for strings and raws. Returns 22<br />

for NUMBER.<br />

ATTR_PRECISION Precision of numeric arguments. If the<br />

precision is nonzero and scale is -127, then<br />

it is a FLOAT; otherwise a NUMBER(p, s). If<br />

precision is 0, then NUMBER(p, s) can be<br />

represented simply as NUMBER.<br />

ATTR_SCALE Scale of numeric arguments. If the precision<br />

is nonzero and scale is -127, then it is a<br />

FLOAT; otherwise a NUMBER(p, s). If<br />

precision is 0, then NUMBER(p, s) can be<br />

represented simply as NUMBER.<br />

ATTR_LEVEL Datatype levels. This attribute always<br />

returns 0.<br />

ATTR_HAS_DEFAULT Indicates whether an argument has a<br />

default<br />

ATTR_LIST_ARGUMENTS The list of arguments at the next level<br />

(when the argument is of a record or table<br />

type)<br />

ATTR_IOMODE Indicates the argument mode. Valid values<br />

are 0 for IN (OCCI_TYPEPARAM_IN), 1 for<br />

OUT (OCCI_TYPEPARAM_OUT), and<br />

2 for IN/OUT (OCCI_TYPEPARAM_<br />

INOUT)<br />

ATTR_RADIX Returns a radix (if number type) int<br />

ATTR_IS_NULL Returns 0 if null values are not permitted<br />

for the column<br />

int<br />

6-22 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

int<br />

int<br />

int<br />

int<br />

int<br />

int<br />

int<br />

int<br />

vector<br />

int

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!