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.

setNull()<br />

unmark()<br />

unpin()<br />

This method sets the object value to null.<br />

Syntax<br />

void setNull();<br />

This method unmarks a persistent object as modified or deleted.<br />

Syntax<br />

void unmark();<br />

PObject Class<br />

This method unpins a persistent object. In the default mode, the pin count of the<br />

object is decremented by one. When this method is invoked with OCCI_<br />

PINCOUNT_RESET, the pin count of the object is reset.<br />

If the pin count is reset, this method invalidates all the references (Ref) pointing to<br />

this object. The cache sets the object eligible to be freed, if necessary, reclaiming<br />

memory.<br />

Syntax<br />

void unpin(UnpinOption mode=OCCI_PINCOUNT_DECR);<br />

Parameters<br />

mode<br />

Specifies whether the pin count should be decremented or reset to 0.<br />

Valid values are:<br />

OCCI_PINCOUNT_RESET<br />

OCCI_PINCOUNT_DECR<br />

OCCI Classes and Methods 8-131

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

Saved successfully!

Ooh no, something went wrong!