pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Thangalin <thangalin@gmail.com>
Cc: John R Pierce <pierce@hogranch.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL data types mapped Java classes for JDBC
Date: Sat, 09 Oct 2010 11:27:02 +1300
Message-ID: <4CAF9AB6.4010203@opencloud.com> (raw)
In-Reply-To: <AANLkTi=WHUKesX2QXbuTmGKb4JxNfyakU+RBKd=xkwya@mail.gmail.com>
References: <AANLkTinsk4rwT7v-751bwQkgTN1rkA=8uE-jk69nape-@mail.gmail.com>
	<4CAF64E4.5000703@hogranch.com>
	<AANLkTi=WHUKesX2QXbuTmGKb4JxNfyakU+RBKd=xkwya@mail.gmail.com>

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



view thread (6+ messages)

Message-ID: <4CAF9AB6.4010203@opencloud.com>
Permalink:  ../4CAF9AB6.4010203@opencloud.com/
Also on:    postgresql.org/message-id/4CAF9AB6.4010203@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, thangalin@gmail.com, pierce@hogranch.com
  Subject: Re: PostgreSQL data types mapped Java classes for JDBC
  In-Reply-To: <4CAF9AB6.4010203@opencloud.com>
  References: <AANLkTinsk4rwT7v-751bwQkgTN1rkA=8uE-jk69nape-@mail.gmail.com> <4CAF64E4.5000703@hogranch.com> <AANLkTi=WHUKesX2QXbuTmGKb4JxNfyakU+RBKd=xkwya@mail.gmail.com> <4CAF9AB6.4010203@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox