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.

PObject Class<br />

isLocked()<br />

isNull()<br />

lock()<br />

Syntax<br />

RefAny getRef() const;<br />

This method test whether the persistent object is locked. If the persistent object is<br />

locked, then true is returned; otherwise, false is returned.<br />

Syntax<br />

bool isLocked() const;<br />

This method tests whether the persistent object is null. If the persistent object is<br />

null, then true is returned; otherwise, false is returned.<br />

Syntax<br />

bool isNull() const;<br />

This method locks a persistent object on the database server.<br />

Syntax<br />

void lock(PObject::LockOption lock_option);<br />

Parameters<br />

lock_option<br />

Specifies whether the lock operation should wait if the object is already locked by<br />

another user. The default value is OCCI_LOCK_WAIT, meaning the operation will<br />

wait.<br />

Valid values are:<br />

OCCI_LOCK_WAIT<br />

OCCI_LOCK_NOWAIT<br />

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