commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [DBUtils][patch] executeQuery method
Date Thu, 21 Nov 2002 23:25:30 GMT

initial capacity, +1.

Iterator will need arguing. I don't believe people need to get collections
back from an API, they need the lowest common denominator and my view is
that this is an iterator.

It's something that always starts arguments though :)

Hen

On Thu, 21 Nov 2002, Jeff Varszegi wrote:

> Looks okay, except I think you should make the initial capacity of the ArrayList bigger
perhaps.
> I don't know.  Also, I would way rather have the ArrayList for my database-lookup trouble
than
> some ListIterator that I can only use once.
>
> My 1.5 cents,
>
> Jeff
>
> --- Eric Alexander <eric.alexander@genscape.com> wrote:
> > Here's a patch to DBUtils that adds an executeQuery method:
> >
> > public static Iterator executeQuery(Connection connection, String query,
> > Object[] vals) throws SQLException
> >
> > If null is found in the Object[], it will get passed to the driver. There's
> > probably something better we can do with it, but it's a start.
> >
> >
>
> > ATTACHMENT part 2 application/octet-stream name=DbUtils.patch
> > --
> > To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus  Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message