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.

setPrefetch()<br />

setLock()<br />

Ref Class<br />

Sets the prefetching options for the complex object retrieval.<br />

This method specifies depth up to which all objects reachable from this object<br />

through Refs (transitive closure) should be prefetched. If only selected attribute<br />

types are to be prefetched, then setPrefetch(type_name, depth) should be<br />

used.<br />

This method specifies which Ref attributes of the object it refers to should be<br />

followed for prefetching of the objects (complex object retrieval) and how many<br />

levels deep those links should be followed.<br />

Syntax<br />

There are variants of syntax:<br />

void setPrefetch(const string &typeName,<br />

unsigned int depth);<br />

void setPrefetch(unsigned int depth);<br />

Parameters<br />

typeName<br />

Type of the Ref attribute to be prefetched.<br />

depth<br />

Depth level to which the links should be followed.<br />

This method specifies how the object should be locked when dereferenced.<br />

Syntax<br />

void setLock(LockOptions);<br />

Parameters<br />

LockOptions<br />

The lock options.<br />

OCCI Classes and Methods 8-137

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

Saved successfully!

Ooh no, something went wrong!