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.

flush()<br />

getConnection()<br />

getRef()<br />

Table 8–15 PObject Methods (Cont.)<br />

Method Summary<br />

This method flushes a modified persistent object to the database server.<br />

Syntax<br />

void flush();<br />

This method returns the connection from which the persistent object was<br />

instantiated.<br />

Syntax<br />

const Connection *getConnection() const;<br />

This method returns a reference to the persistent object.<br />

PObject Class<br />

lock() on page 8-128 Lock a persistent object on the database server. The<br />

default mode is to wait for the lock if not available.<br />

markDelete() on page 8-129 Mark a persistent object as deleted.<br />

markModified() on page 8-129 Mark a persistent object as modified or dirty.<br />

operator=() on page 8-129 Assign one PObject to another.<br />

operator delete() on page 8-129 Remove the persistent object from the application cache<br />

only.<br />

operator new() on page 8-130 Creates a new persistent / transient instance.<br />

pin() on page 8-130 Pins an object.<br />

setNull() on page 8-131 Sets the object value to null.<br />

unmark() on page 8-131 Unmarks an object as dirty.<br />

unpin() on page 8-131 Unpins an object. In the default mode, the pin count of<br />

the object is decremented by one.<br />

OCCI Classes and Methods 8-127

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

Saved successfully!

Ooh no, something went wrong!