Re: PostgreSQL data types mapped Java classes for JDBC

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Thangalin <thangalin(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PostgreSQL data types mapped Java classes for JDBC
Date: 2010-10-08 22:27:02
Message-ID: 4CAF9AB6.4010203@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-10-09 06:37:38 Re: DatabaseMetaData.getTablePrivileges()
Previous Message dmp 2010-10-08 20:33:27 Re: PostgreSQL data types mapped Java classes for JDBC