Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5A9D29FBAEF for ; Wed, 21 Feb 2007 11:47:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 23148-07 for ; Wed, 21 Feb 2007 11:47:36 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by postgresql.org (Postfix) with ESMTP id 785929FB94C for ; Wed, 21 Feb 2007 11:47:36 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id i7so2914843wra for ; Wed, 21 Feb 2007 07:47:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=aJViH7BVOAa/G92FGPfw3h3b169MVNwAV819L4qkpYHTL0QO8HQ9kS2IUtbahHWzmipzEeeTEAqjEcmDweTj3K/ByJzk4BiU6s48cokagPKugjRveF1z4HQMbsXzDnOeoh0Ed6SFDlwaDI8Ow8MSUSTveTiIt8COy2+lJU+7cgo= Received: by 10.114.158.1 with SMTP id g1mr42474wae.1172072854000; Wed, 21 Feb 2007 07:47:34 -0800 (PST) Received: by 10.114.234.1 with HTTP; Wed, 21 Feb 2007 07:47:33 -0800 (PST) Message-ID: <6ec50dfd0702210747u7b38fe48x96ea5fe1bb06b33a@mail.gmail.com> Date: Wed, 21 Feb 2007 16:47:33 +0100 From: "Julius Stroffek" To: pgsql-jdbc@postgresql.org Subject: JDBC object factory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8465_13594850.1172072853631" X-Google-Sender-Auth: a99815be3d7f3651 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.61 tagged_above=0 required=5 tests=BAYES_40, HTML_00_10, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/114 X-Sequence-Number: 16670 ------=_Part_8465_13594850.1172072853631 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? 2.) Would it be worthwhile to implement such a feature and spent some time on it? Is anybody interested? 3.) Are there any processes described for integrating patches? Thank you for your advices. Regards Julo ------=_Part_8465_13594850.1172072853631 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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?
2.) Would it be worthwhile to implement such a feature and spent some time on it? Is anybody interested?
3.) Are there any processes described for integrating patches?

Thank you for your advices.

Regards

Julo
------=_Part_8465_13594850.1172072853631--