I have some user defined types that are collections containing nested tables within Oracle (11g). For example:
Code:
CREATE OR REPLACE TYPE a_list_type AS OBJECT (
a_id INTEGER,
start_date DATE,
stop_date DATE,
desc VARCHAR2(64)
);
CREATE OR REPLACE TYPE a_collection AS TABLE of a_list_type;
CREATE OR REPLACE TYPE main_type AS OBJECT (
main_id INTEGER,
main_type VARCHAR2(10),
a_list_collection a_collection
);
CREATE OR REPLACE TYPE main_collection AS TABLE OF main_type;
Assuming I have a stored function that populates and returns an object of "main_collection" type. How would I reference the returned object from inside a C++ program? What sort of C++ object would an Oracle object be returned into?