[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copyObject: deep or shallow copy?
On Thu, 05 Apr 2001, Nathan Eric Probst wrote:
> I wonder if someone can give me a quick answer to this question.
>
> Does Database.copyObject() to a deep copy or a shallow copy?
deep. (excluding dependent database objects of course)
>
> By way of example:
>
> Say I have a three-layer deep graph of database objects that I want to use as a
> template. This objects are ititialized and maintained in a "blank" state. I
> want to do a deep copy of this graph when creating a new instance of an object
> which contains this graph, but I don't want to get references (and thereby
> modify) the original "blank" template objects?
is this graph made of database or ordinary objects?
>
> Does this make sense? Am I babbling? I don't know...
>
> Also, I seem to recall someone saying that copyObject had some performance
> advantages. Is this correct?
advantages over what?
Falko
--
______________________________________________________________________
Falko Braeutigam mailto:falko@smb-tec.com
SMB GmbH http://www.smb-tec.com