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

Re: nameObject bug?



Will,

Just so I understand.  This change is to allow updating of objects basically right?  So, if I
make changes to one of my database objects I can now right a utility that removes those
objects even though the signature has changed?

Tim

William Uther wrote:

> --On Wed, Dec 29, 1999 1:14 PM -0500 William Uther
> <will+ozone-db@cs.cmu.edu> wrote:
>
> >
> >>    public void nameObject (ObjectState state, String name) {
> >>      String oldName = state.name();
> >>      if (oldName != null)
> >>              nameTable.removeForKey (oldName);
> >>       nameTable.addForKey (state.encapObjID().clone(), new String(name));
> >>       state.setName (name);
> >>       }
>
> Looks like that change works.  By further changing it to:
>
> >       public void nameObject (ObjectState state, String name) {
> >               String oldName = state.name();
> >               if (oldName != null)
> >                       nameTable.removeForKey (oldName);
> >               if (name != null)
> >                       nameTable.addForKey (state.encapObjID().clone(), new String(name));
> >               state.setName (name);
> >       }
>
> I hope to be able to remove names from objects without removing the objects
> from the database.  Kind on an 'UnNameObject'.  Any problems with this?
>
> later,
>
> \x/ill        :-}

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