Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0FEA41337B9B for ; Fri, 8 Oct 2010 19:27:24 -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 17502-07 for ; Fri, 8 Oct 2010 22:27:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id C26811336DB6 for ; Fri, 8 Oct 2010 19:27:16 -0300 (ADT) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P4LPB-0000n5-V0; Sat, 09 Oct 2010 11:27:10 +1300 Message-ID: <4CAF9AB6.4010203@opencloud.com> Date: Sat, 09 Oct 2010 11:27:02 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Thangalin CC: John R Pierce , pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL data types mapped Java classes for JDBC References: <4CAF64E4.5000703@hogranch.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/68 X-Sequence-Number: 21036 Thangalin wrote: > That's the problem, John. > > No single location provides a consistent way to know what all those > bindings are and how they differ. If you wanted to write dynamic code > that generates the correct mapping, you cannot readily create any such > implementation. Use DatabaseMetadata, it's intended for exactly this case. Oliver