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.

OTT Utility Datatype Mappings<br />

OCIInd object_name;<br />

};<br />

typedef struct object_type_ind object_type_ind;<br />

struct many_types<br />

{<br />

OCIString * the_varchar;<br />

OCIString * the_char;<br />

OCIBlobLocator * the_blob;<br />

OCIClobLocator * the_clob;<br />

struct object_type the_object;<br />

other_type_ref * another_ref;<br />

many_types_ref * the_ref;<br />

my_varray * the_varray;<br />

my_table * the_table;<br />

OCIDate the_date;<br />

OCINumber the_num;<br />

OCIRaw * the_raw;<br />

};<br />

typedef struct many_types many_types;<br />

struct many_types_ind /*indicator struct for*/<br />

{ /*many_types*/<br />

OCIInd _atomic;<br />

OCIInd the_varchar;<br />

OCIInd the_char;<br />

OCIInd the_blob;<br />

OCIInd the_clob;<br />

struct object_type_ind the_object; /*nested*/<br />

OCIInd another_ref;<br />

OCIInd the_ref;<br />

OCIInd the_varray;<br />

OCIInd the_table;<br />

OCIInd the_date;<br />

OCIInd the_num;<br />

OCIInd the_raw;<br />

};<br />

typedef struct many_types_ind many_types_ind;<br />

#endif<br />

Notice that even though only one item was listed for translation in the INTYPE file,<br />

two object types and two named collection types were translated. This is because<br />

the OTT utility parameter TRANSITIVE Parameter, has the default value of TRUE.<br />

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

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

Saved successfully!

Ooh no, something went wrong!