db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: how should store get an object based on format id and collation id?
Date Mon, 16 Apr 2007 22:03:51 GMT
Mike Matrigali wrote:

> Ok, this answers a previous question I had posted.  Store currently uses
> the following to get new "empty" instances of classes which will
> subsequently be initiated by calls to readExternal():
> dvd = dvd.getClass().newInstance()
> It sounds like this should be replaced by:
> dvd = dvd.getNewNull()
> I thought there might be some waisted state setting done by getNewNull()
> that might be saved by creating a new interface like dvd.getNewEmpty().

A newly created DVD is in the null state so it's the same amount of work.


View raw message