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.

Overview of Navigational Access<br />

ResultSet *rs = stmt->executeQuery(sel_addr_val);<br />

while (rs->next())<br />

{<br />

ADDRESS *addr_val = rs->getObject(1);<br />

cout setSQL("INSERT INTO ADDR_TAB values(:1)");<br />

stmt->setObject(1, addr_val);<br />

stmt->execute();<br />

Overview of Navigational Access<br />

By using navigational access, you engage in a series of operations:<br />

■ Retrieving an Object Reference (REF) from the Database Server<br />

■ Pinning an Object<br />

■ Manipulating Object Attributes<br />

■ Marking Objects and Flushing Changes<br />

3-14 <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!