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

Re: FW: Some small Q's



On Fri, 24 Mar 2000, Jon Finanger wrote:
> > class is a reserved word in java.  It is used to either:
> > 
> >  start defining a new class, as in:
> > 
> >   class MyClass { }
> > 
> >  or to get the java.lang.Class instance for a class.  For example:
> > 
> >   'MyClass.class' is a reference to the java.lang.Class instance 
> > representing MyClass.  I guess you can think of this as a typechecked 
> > version of java.lang.Class.forName("MyClass").
> > 
> >   MyClass.class.getName() will return the String "MyClass" (with package 
> > info if it is not in the default package).
> > 
> > This is standard java (1.1 or later I believe) and not Ozone specific in 
> > any way.
> 
> Ahhh...there is always something new :)
> 
> 
> > I don't believe there is any auto-generation of unique keys.  If 
> > you create 
> > an unnamed object then you must keep a reference to it (technically a 
> > reference to a proxy for it).  If you don't keep a proxy then you 
> > lose all 
> > means of accessing (or deleteing!) that object.
> 
> But cant you get them using the objectsOfClass()?
Wills explanation was absolutely correct. The objectsOfClass(), as decsribed in
my last mail, is not really needed and not implemented.

> Is there any plans to get autoincremented keys?

To say it in other words: you deal with proxies - not keys! We are in the OO
world!


Falko
-- 
______________________________________________________________________
Falko Braeutigam                         mailto:falko@softwarebuero.de
softwarebuero m&b (SMB)                    http://www.softwarebuero.de