Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group