Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BBD336365B0 for ; Fri, 23 Jul 2010 15:09:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87164-01-8 for ; Fri, 23 Jul 2010 18:09:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 0A9276345DD for ; Fri, 23 Jul 2010 15:08:35 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id E8FCA2840F; Fri, 23 Jul 2010 14:08:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=SzMO9VSWoO9NQEDou6HvAfcbKUM=; b=uNlYvs kqWAYULW71yRweltW7DPgSisJMEFfncBGHz3TR8WkmZKQ1HP91XnNgfUOSM+5Khe UnschUUGvtreIMsMkU6jTBEG8hDQ82NzeNypipn8+HQnQqaLi9gRXnExWaN+uEyh GnLZ8sChxwJSpUgm3Q9fY/+G9iCw26S2c0LTU= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id DB8D22840E; Fri, 23 Jul 2010 14:08:33 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 7E279A206; Fri, 23 Jul 2010 14:08:33 -0400 (EDT) Date: Fri, 23 Jul 2010 14:08:33 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tim Bunce cc: pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL JDBC vs jxDBCon as a model for other language implementations In-Reply-To: <20100722085402.GB80399@timac.local> Message-ID: References: <20100722085402.GB80399@timac.local> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/96 X-Sequence-Number: 20761 On Thu, 22 Jul 2010, Tim Bunce wrote: > The PostgreSQL JDBC drivers seems to have a good Abstract* class > hierarchy, which is what I'm looking for. There does seem to be > some PostgreSQL-specific logic in those abstract classes though, > like appendArray in AbstractJdbc4Connection. The AbstractJdbc classes are not designed with the intention of being usable by other database driver implementations and are very postgresql specific. They are instead designed to be able to share code across the various JDBC driver versions that can be compiled. When you build the driver you get a version that matches the JDBC spec of your JDK. So over the course of history we've offered JDBC 1 -> JDBC 4 spec drivers and that's what the AbstractJdbc classes facilitate. Kris Jurka