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.

Type Inheritance<br />

A subtype of NOT INSTANTIABLE can override any of the NOT INSTANTIABLE<br />

methods of the supertype and provide concrete implementations. If there are any<br />

NOT INSTANTIABLE methods remaining, the subtype must also necessarily be<br />

declared as NOT INSTANTIABLE.<br />

A NOT INSTANTIABLE subtype can be defined under an instantiable supertype.<br />

Declaring a NOT INSTANTIABLE type to be FINAL is not useful and is not allowed.<br />

OCCI Support for Type Inheritance<br />

The following calls support type inheritance.<br />

Connection::getMetaData()<br />

This method provides information specific to inherited types. Additional attributes<br />

have been added for the properties of inherited types. For example, you can get the<br />

supertype of a type.<br />

Bind and Define Functions<br />

The setRef, setObject and setVector methods of the Statement class are<br />

used to bind REF, object, and collections respectively. All these functions support<br />

REF, instance, and collection element substitutability. Similarly, the corresponding<br />

getxxx methods to fetch the data also support substitutability.<br />

OTT Support for Type Inheritance<br />

Class declarations for objects with inheritance are similar to the simple object<br />

declarations except that the class is derived from the parent type class and only the<br />

fields corresponding to attributes not already in the parent class are included. The<br />

structure for these declarations is as follows:<br />

class : public {<br />

protected:<br />

;<br />

.<br />

.<br />

.<br />

;<br />

public:<br />

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