[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking for createObject w/param example



Thanks Falko,

Once I get the usage sorted out I'll take a look at implementing a method 
that automatically generates the signature string.

cheers,

don


>From: Falko Braeutigam <falko@softwarebuero.de>
>Reply-To: ozone-users@ozone-db.org
>To: "Don Berendsen" <donberendsen@hotmail.com>, ozone-users@ozone-db.org
>Subject: Re: looking for createObject w/param example
>Date: Wed, 2 Aug 2000 13:29:06 +0200
>
>On Wed, 02 Aug 2000, Don Berendsen wrote:
> > I am having problems creating database objects using
> >
> > createObject(java.lang.String className,
> >                                int access,
> >                                java.lang.String name,
> >                                java.lang.String sig,
> >                                java.lang.Object[] args)
> >
> > Can someone please provide me with an example of the proper use of this
> > method. I'm not familiar with method signatures and suspect my method
> > signature parameter is incorrect and would appreciate a good example or
> > reference for this.
>
>This method was intended to be used internally for the special ODBMS 
>proxies
>only. So there is no documentation or sample how to use it. If we want this 
>to
>be part of the general API, then it would be cool, if someone could 
>implement
>a version of the method that automatically creates the signature string 
>from
>the args array.
>
>Anyway, basically the signature string looks like:
>
>[args[0].getClass().getName()]|[args[1].getClass().getName()|...]
>
>But keep in mind that the formal method parameter type need not to be 
>exactly
>the same as the actual types of the parameters: the formal parameter type 
>may
>be 'Object' but you can call the method with a 'String' parameter. The 
>above
>signature string must contain 'java.lang.Object' in this case.
>
>
>Falko
>--
>______________________________________________________________________
>Falko Braeutigam                         mailto:falko@softwarebuero.de
>SMB GmbH                                   http://www.softwarebuero.de
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com