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.

Connection *conn = env->createConnection("scott","tiger","");<br />

process(conn);<br />

env->terminateConnection(conn);<br />

Environment::terminateEnvironment(env);<br />

return 0;<br />

}<br />

Note: Each extension class declaration must #include the<br />

generated header file of the class it is extending. For example,<br />

myfullname.h must #include cperson.h and mystudent.h<br />

must #include cstudent.h. mydemo.cpp must #include<br />

registerMappings.h in order to call the registerMapping<br />

function to register the mappings.<br />

Output Generated by Example OTT Application<br />

The output generated from the example OCCI application is:<br />

-----------------------------------<br />

ID is: 1<br />

FIRST NAME is: Joe<br />

LAST NAME is: Black<br />

STATE is: CA<br />

ZIP is: 94065<br />

Prev Addr List:<br />

-----------------------------------<br />

ID is: 1<br />

FIRST NAME is: Joe<br />

LAST NAME is: Black<br />

STATE is: PA<br />

ZIP is: 92140<br />

Example OCCI Application<br />

How to Use the Object Type Translator Utility 7-115

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

Saved successfully!

Ooh no, something went wrong!