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

Re: Object Creation in ozone



I ran into this when I first started and resolved it by adding a "construct()"
method to any ozone objects that need tnitialization done.  I call the
construct() method immediately after calling db.createObject() (outside Ozone
JVM)  or database().createObject() (inside server).

Falko Braeutigam wrote:

> On Fri, 11 Aug 2000, Don Berendsen wrote:
> > Hi Falko,
> >
> > Substituting 'database()' for 'Repository.getDB()' in the constructor of
> > ObjectOneImpl in the example below results in a runtime exception of 'Object
> > is not (yet) associated with a database container. In the example below how
> > would one initiate creation of ObjectTwo from within the constructor of
> > ObjectOne?
> That's a FAQ... ;) There is no way to do any database operations inside the
> ctor currently.
>
> > This is not an academic question, there are significant reasons for using
> > this construct in my app.
> What are those reasons? So far I always found a way around this limitation...
>
> Falko
> --
> ______________________________________________________________________
> Falko Braeutigam                              mailto:falko@smb-tec.com
> SMB GmbH                                        http://www.smb-tec.com

--
Tim Brown
URL: http://www.incenter.org