Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 78831 invoked from network); 21 Nov 2002 23:25:32 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Nov 2002 23:25:31 -0000 Received: (qmail 2514 invoked by uid 97); 21 Nov 2002 23:26:36 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 2498 invoked by uid 97); 21 Nov 2002 23:26:35 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 2486 invoked by uid 98); 21 Nov 2002 23:26:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Thu, 21 Nov 2002 18:25:30 -0500 (EST) From: Henri Yandell X-X-Sender: To: Jakarta Commons Developers List Subject: Re: [DBUtils][patch] executeQuery method In-Reply-To: <20021121232040.71684.qmail@web10402.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Ar= rayList bigger perhaps. > I don't know. Also, I would way rather have the ArrayList for my databas= e-lookup trouble than > some ListIterator that I can only use once. > > My 1.5 cents, > > Jeff > > --- Eric Alexander 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. The= re's > > probably something better we can do with it, but it's a start. > > > > > > > ATTACHMENT part 2 application/octet-stream name=3DDbUtils.patch > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus =96 Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: