pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Julius Stroffek <julo@stroffek.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC object factory
Date: Thu, 22 Feb 2007 08:06:34 -0500
Message-ID: <31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.com> (raw)
In-Reply-To: <6ec50dfd0702210747u7b38fe48x96ea5fe1bb06b33a@mail.gmail.com>
References: <6ec50dfd0702210747u7b38fe48x96ea5fe1bb06b33a@mail.gmail.com>


On 21-Feb-07, at 10:47 AM, Julius Stroffek wrote:

> Hello All,
>
> I am thinking of implementing a JDBC object factory which will  
> create correct jdbc object instances at runtime depending on java  
> version the application is running on.
>
> The interface should look like
>
> interface JDBCObjectFatory {
> public static Connection createConnection(some prameters);
> public static Connection createStatement(some parameters);
> ... etc
> }
>
> And the corresponding implementations should be JDBC2ObjectFactory,  
> JDBC3ObjectFactory and JDBC4ObjectFactory.
>
> For each JDBC version the corresponding set of objects might be  
> available. The appropriate inheritance relations might be in place  
> where the implementations of the methods common to more JDBC  
> version will be implemented only in the super class (due to object  
> factory).
>
> As I am new to posgres jdbc driver I would like to ask some questions:
> 1.) What do you think of the idea?
Why would you want to do this ? Just get the correct jar(s) and use  
the code the way it is.
> 2.) Would it be worthwhile to implement such a feature and spent  
> some time on it? Is anybody interested?
Well other than the obvious problem of even building it since each  
jdbc interface is different for each compiler. Again I"m wondering why ?
> 3.) Are there any processes described for integrating patches?
send context diffs against CVS
>
> Thank you for your advices.
>
> Regards
>
> Julo




view thread (2+ messages)

Message-ID: <31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.com>
Permalink:  ../31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.com/
Also on:    postgresql.org/message-id/31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.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: pg@fastcrypt.com, julo@stroffek.net
  Subject: Re: JDBC object factory
  In-Reply-To: <31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.com>
  References: <6ec50dfd0702210747u7b38fe48x96ea5fe1bb06b33a@mail.gmail.com> <31516617-4AE2-4D3D-BD16-4B8D8E854A43@fastcrypt.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