| Backward accessing super type's attributes from sub type body in oracle collection (Types) [message #573661] |
Wed, 02 January 2013 03:14  |
 |
prabakaran.sr
Messages: 2 Registered: January 2013
|
Junior Member |
|
|
hello eveyone..
I have 3 user defined collection types. I am trying to access the type3's attribute in type1 body (like backward accessing).
Ex. My Collection Types Structure (something like master detail structure)
create type type1 as object
(
attr1 varchar2(10),
attr2 varchar2(10),
member procedure function1
)
/
create type type1_colc as table of type1
/
create type type2 as object
(
attr1 varchar2(10),
attr2 varchar2(10),
oc_t1 type1_colc,
member procedure function1
)
/
create type type2_colc as table of type2
/
create type type3 as object
(
attr1 varchar2(10),
attr2 varchar2(10),
oc_t2 type2_colc,
member procedure function1
)
/
so, in the type1 body i have to get or assign the value either to type2's attribute or type3's attribute. I have search all the in internet but i haven't find anything such. Someone please help me how to find the reverse method of accessing the super type's attribute(s) in sub type's body.
|
|
|
|
|
|
|
|
| Re: Backward accessing super type's attributes from sub type body in oracle collection (Types) [message #573677 is a reply to message #573675] |
Wed, 02 January 2013 04:58  |
 |
Michel Cadot
Messages: 54247 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
I don't know Forms but what I can say is that you cannot refer type3 in type1 type because type1 do not refer to type3.
In addition, what your code describes are not supertype or subtype but just a type that is an attribute of another type, there is no hierarchy of types.
So I conclude your model is wrong but as I said I don't know Forms and so can't help you to migrate in this way. Anyway, I'd not go to object method for this unless you have a real expert on this feature (which does not seem to be the case).
Regards
Michel
|
|
|
|