Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> User defined TYPEs

User defined TYPEs

From: Andrey Bronfin <bronfin_at_VisualTop.com>
Date: Wed, 13 Sep 2000 20:52:05 +0200
Message-Id: <10618.116870@fatcity.com>


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C01DC4.79A11810 Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear List !

I need to define a user-defined TYPE X that contains objects of the = same TYPE X ( recursively ) .
i also need to define a type A that contains objects of another type B , = which contains objects of type A .

For example i need something like :

create type button_obj as object ( name varchar2(10) , action = varchar2(10) , buttons_list ) ;

And the buttons_list is=20

create type buttons_list as table of button_obj ;

I did not find a way to do it :( .

It looks like the type "buttons_list" must be already defined prior to = defining of "button_obj"=20
and "button_obj" must be already defined prior to defining of = "buttons_list" .

What should i do ?

Any ideas will be greatly appreciated .

Thanks a lot in advance .

Andrey Bronfin
VisualTop.com

------=_NextPart_000_000F_01C01DC4.79A11810 Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#d4d0c8>
<DIV><FONT face=3DArial size=3D2>Dear List !</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need to define a user-defined =
TYPE&nbsp; X that=20
contains objects of the same TYPE&nbsp; X ( recursively ) .</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i also need to define a type A that =
contains=20
objects of another type B , which contains objects of type A = .</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For example i need something like =
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>create type button_obj as object ( name =

varchar2(10) ,&nbsp; action varchar2(10) , buttons_list ) ;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And the buttons_list is </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>create type buttons_list as table of=20
button_obj&nbsp; ;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I did not find a way to do it :(&nbsp;=20
.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It looks like the type "buttons_list" =
must be=20
already defined prior to defining of "button_obj" </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and "button_obj"&nbsp; must be already =
defined=20
prior to defining of&nbsp; "buttons_list" .</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What should i do ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas will be greatly appreciated=20
.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot in advance .</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR>Andrey=20
Bronfin<BR>VisualTop.com<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR></FONT>&nbsp;</DIV></BODY></HTML>
Received on Wed Sep 13 2000 - 13:52:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US