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.

Carrying Forward User Added Code<br />

5. OTT will not be able to carry forward user added code properly if the database<br />

TYPE or INTYPE file under goes changes as shown in the following cases:<br />

a. If user modifies the case of the type name, OTT will fail to find out the class<br />

name with which the code was associated earlier as the case of the class<br />

name got modified by the user in the INTYPE file.<br />

CASE=UPPER CASE=LOWER<br />

TYPE employee TYPE employee<br />

TRANSLATE SALARY$ AS salary TRANSLATE SALARY$ AS salary<br />

DEPTNO AS department DEPTNO AS department<br />

TYPE ADDRESS TYPE ADDRESS<br />

TYPE item TYPE item<br />

TYPE "Person" TYPE "Person"<br />

TYPE PURCHASE_ORDER AS p_o TYPE PURCHASE_ORDER AS p_o<br />

b. If user asks to generate the class with different name (GENERATE AS<br />

clause of INTYPE file), OTT will fail to find out the class name with which<br />

the code was associated earlier as the class name got modified by the user<br />

in the INTYPE file.<br />

7-64 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

CASE=LOWER CASE=LOWER<br />

TYPE employee TYPE employee<br />

TRANSLATE SALARY$ AS salary TRANSLATE SALARY$ AS salary<br />

DEPTNO AS department DEPTNO AS department<br />

TYPE ADDRESS TYPE ADDRESS<br />

TYPE item TYPE item<br />

TYPE "Person" TYPE "Person"<br />

TYPE PURCHASE_ORDER AS p_o TYPE PURCHASE_ORDER AS<br />

purchase_order<br />

6. If OTT encounters an error while parsing a .h or .cpp file, it reports the error<br />

and leaves the file having error as it is so that the user can go back and correct<br />

the error reported, and rerun OTT.<br />

7. OTT will flag an error if<br />

■ it does not find a matching OTT_USERCODE_END for OTT_USERCODE_<br />

START encountered<br />

■ markers are nested (OTT finds next OTT_USERCODE_START before OTT_<br />

USERCODE_END is found for the previous OTT_USERCODE_START)<br />

■ OTT_USERCODE_END is encountered before OTT_USERCODE_START

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

Saved successfully!

Ooh no, something went wrong!