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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Clob Class<br />

getCharSetId()<br />

getChunkSize()<br />

getStream()<br />

Syntax<br />

CharSetForm getCharSetForm() const;<br />

This method returns the character set ID of the CLOB, in string form.<br />

Syntax<br />

string getCharSetId() const;<br />

This method returns the chunk size of the CLOB.<br />

When creating a table that contains a CLOB, the user can specify the chunking<br />

factor, which can be a multiple of <strong>Oracle</strong> blocks. This corresponds to the chunk size<br />

used by the LOB data layer when accessing and modifying the CLOB.<br />

Syntax<br />

unsigned int getChunkSize() const;<br />

This method returns a Stream object from the CLOB. If a stream is already open, it<br />

is disallowed to open another stream on Clob object, so the user must always close<br />

the stream before performing any Clob object operations. The client’s character set<br />

id and form will be used by default, unless they are explicityly set through<br />

setCharSetId() and setCharSetForm() calls.<br />

Syntax<br />

Stream* getStream(unsigned int offset = 1,<br />

unsigned int amount = 0);<br />

Parameter<br />

offset<br />

The starting position at which to begin reading data from the CLOB. If offset is<br />

not specified, the data is written from the beginning of the CLOB.<br />

Valid values are:<br />

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