X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5C90CD1B298 for ; Thu, 17 Jun 2004 18:11:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83575-07 for ; Thu, 17 Jun 2004 21:11:50 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 260AED1B272 for ; Thu, 17 Jun 2004 18:11:47 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i5HLBlQC051042 for ; Thu, 17 Jun 2004 21:11:47 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i5HL8gHR050512 for pgsql-jdbc@postgresql.org; Thu, 17 Jun 2004 21:08:42 GMT From: lbrtchx@hotmail.com (Albretch) X-Newsgroups: comp.lang.java.programmer, comp.lang.java.databases, mailing.database.mysql-java, comp.databases.postgresql.interfaces.jdbc Subject: Portable Java Data Layer based on JDBC Date: 17 Jun 2004 14:08:43 -0700 Organization: http://groups.google.com Lines: 50 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/126 X-Sequence-Number: 10328 Hi, I, as a java developer, find myself constantly switching among different DBMS. The JDBC easies it greatly, but I am thinking about a Portable DATA Layer kind of functionality to aliviate the problems when you must do that. Notice I am not talking aobut connection pooling or persistence manager! Here are some of the problems I would like to rid of my mind: 1._ A change of DBMS should only require a one-line change in a properties files DataLayer DL = new DataLayer("_.propeties"); 2._ SQL statements should be declared outside the code entirely, so that admin people and DBAs can look at the damage we devs are doing :-) 3._ Changes in the SQL statements ('We' constantly change the Data Tables and Structures during dev) I don't want to have to touch the code if I change the Data layer. Say, a new column is included in the Table 4._ I would love to query a DBMS like you call a method, without having to worry about getInt's, and getString's things; something like: ResultSetRecordsObjs[] RSO02 = DL.preparedStat("SELECT ...").getRecordObjects(); Then you would simply go: . Request.setAttribute("RSO02Ar", RSO02); . grab the array of objects containing the returned records information in a jSP and display the results. Notice that only the JSP would have to be changed possibly by a knowledgable designer. Do you know of something like that already out there (preferably open source :-))?