X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 041FD3A4549 for ; Wed, 3 Nov 2004 20:03:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72441-08 for ; Wed, 3 Nov 2004 20:03:17 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id D65833A432B for ; Wed, 3 Nov 2004 20:03:18 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CPRLX-0003oA-00; Thu, 04 Nov 2004 09:03:07 +1300 Message-ID: <418939E6.7030602@opencloud.com> Date: Thu, 04 Nov 2004 09:04:54 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (X11/20041021) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Schaber Cc: pgsql-jdbc@postgresql.org, Kris Jurka Subject: Re: Avoiding explicit addDataType calls for PostGIS References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com> <41645F7A.2040106@opencloud.com> <20041007104603.78af41f3@kingfisher.intern.logi-track.com> <416B63BF.4090304@opencloud.com> <417588E7.7020205@opencloud.com> <20041103122816.1c6ab2de@kingfisher.intern.logi-track.com> In-Reply-To: <20041103122816.1c6ab2de@kingfisher.intern.logi-track.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/48 X-Sequence-Number: 11470 Markus Schaber wrote: >>Perhaps an array-based accessor, one element per datatype? > > Or a Map, so we can index via name. This doesn't play so well with JavaBeans. It has mechanisms for handling array-based accessors, but a Map is just a serializable object.. >>Alternatively, collapse all the datatype stuff down to a single property >>and teach the property-munging code how to merge (rather than replace) >>multiple settings of that property together. (this second option is more >>like what JNDI property files do) > > This sounds cleaner, IMHO. This would produce (and allow) to specify > something like datatypes=geom:org.postgis.PGgeometry,blubb=com.foo.bar > > Should I try to change the patch this way? If you have time that'd be appreciated. I'm short on time and recovering from illness right now :( -O