Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle objects and method encapsulation
Have you tried that using PL/SQL it doesn't work, oracle objects that
sit in the db seemingly do not allow private methods. Every time I
try to compile it it says method defined in body needed in spec.
"Georg Scholz" <georg.scholz_at_vienna.at> wrote in message news:<O7Tna.109857$UR.950832_at_news.chello.at>...
> Do you mean the CREATE TYPE xxx AS OBJECT statement?
>
> Then you simply need to put the private functions in the BODY part without
> mentioning them in the declaration part.
>
> Georg Scholz
>
> "Seth" <sgelberg_at_optonline.net> schrieb im Newsbeitrag
> news:f3159b28.0304180500.21854fd9_at_posting.google.com...
> > Im wondering if it is possible to hide pl/sql methods in the objects
> > body - the compiler seems not to allow this, but interestingly enough
> > if I define the method as an external java method the compiler does
> > not require a definition in the spec.
> >
> > It seems odd that Oracle would require all methods to be public,
> > anyone know how to get around this.
Received on Sat Apr 19 2003 - 07:06:59 CDT