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.

External Datatypes<br />

Please note the usage of the types in the following methods of the Statement class:<br />

■ registerOutParam: Only types of the form OCCIxxx (for example,<br />

OCCIDOUBLE, OCCICURSOR, and so on) on the occiCommon.h file are<br />

permitted. However, there are some exceptions. OCCIANYDATA,<br />

OCCIMETADATA, OCCISTREAM, and OCCIBOOL are not permitted.<br />

■ setDataBuffer() and setDataBufferArray: Only types of the form<br />

OCCI_SQLT_xxx (for example, OCCI_SQLT_INT) in the occiCommon.h file<br />

are permitted.<br />

Please note the usage of the types in the following methods of the ResultSet class:<br />

■ setDataBuffer() and setDataBufferArray: Only types of the form<br />

OCCI_SQLT_xxx (for example, OCCI_SQLT_INT) in the occiCommon.h file<br />

are permitted.<br />

Description of External Datatypes<br />

This section provides a description for each of the external datatypes.<br />

BFILE<br />

The external datatype BFILE allows read-only byte stream access to large files on<br />

the file system of the database server. A BFILE is a large binary data object stored in<br />

operating system files outside database tablespaces. These files use reference<br />

semantics. The <strong>Oracle</strong> server can access a BFILE provided the underlying server<br />

operating system supports stream-mode access to these operating system files.<br />

BLOB<br />

The external datatype BLOB stores unstructured binary large objects. A BLOB can be<br />

thought of as a bitstream with no character set semantics. BLOBs can store up to 4<br />

gigabytes of binary data.<br />

BLOB datatypes have full transactional support. Changes made through OCCI<br />

participate fully in the transaction. BLOB value manipulations can be committed or<br />

rolled back. You cannot save a BLOB locator in a variable in one transaction and<br />

then use it in another transaction or session.<br />

CHAR<br />

The external datatype CHAR is a string of characters, with a maximum length of<br />

2000 characters. Character strings are compared by using blank-padded comparison<br />

semantics.<br />

4-8 <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!