X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 20D32B43368 for ; Mon, 7 Jul 2003 14:17:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 92121-04 for ; Mon, 7 Jul 2003 11:17:15 -0300 (ADT) Received: from mail.mdp.net (mail.mdp.net [207.89.166.195]) by svr1.postgresql.org (Postfix) with ESMTP id BD297B4388C for ; Mon, 7 Jul 2003 11:17:10 -0300 (ADT) Received: from vinay [65.88.169.22] by mail.mdp.net (SMTPD32-6.06) id ACE62010C; Mon, 07 Jul 2003 10:00:06 -0400 Message-ID: <00d001c34491$ad905590$157a40c0@vinay> From: "Vinay" To: Subject: generic SQL implementations Date: Mon, 7 Jul 2003 10:11:36 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00CD_01C34470.262DAF60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-RBL-Warning: REVDNS: This E-mail was sent from a MUA/MTA 65.88.169.22 with no reverse DNS entry. X-Declude-Sender: vinay@mdp.net [65.88.169.22] X-Declude-Spoolname: D7ce610c.SMD X-Note: This E-mail was scanned by DCC JunkMail (www.dataconstructs.com) for spam. X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/68 X-Sequence-Number: 9409 This is a multi-part message in MIME format. ------=_NextPart_000_00CD_01C34470.262DAF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Has anybody implemented a generic implementation for querying databases dur= ing runtime. I am using DAO's for data access layer. But I want to furthu= r move the database logic to down one more layer of abstraction.I am dealin= g with different kinds of database (eg. let's say a MySQL, MS Access and an= other not SQL at all ,index sequential files). I want the DAO to access the= database during runtime. So I want my DAO to be independent of the SQL sta= tements.The Database Interfrace would talk to either MySQL,or Oracle or any= other database.So that there is no need to have DAO for each database s= yntax, rather , this should be handled by a API thru an interface. Here's and examples Let's say for select statement , we supply table name, column names, where = cluase , and's etc The following method should handle the query List getSelect(String tablename, List columnnames, List Orderby,.....) etc { return queryresult }=20=20 Any ideas appreciated Thank you=20 Vinay ------=_NextPart_000_00CD_01C34470.262DAF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Has anybody implemented a generic implemen= tation=20 for querying databases during runtime. I am  using  DAO's for dat= a=20 access layer. But I want to furthur move the database logic to down on= e=20 more layer of abstraction.I am dealing with different kinds of database (eg= .=20 let's say a MySQL, MS Access and another not SQL at all ,index sequential= =20 files). I want the DAO to access the database during runtime. So I want my = DAO=20 to be independent of the SQL statements.The Database Interfrace would talk = to=20 either MySQL,or Oracle or any other database.So that  there is&nb= sp;no=20  need to have  DAO for each database syntax, rather , t= his=20 should be handled by a API thru an interface.
 
Here's and examples
 
Let's say for select statement , we supply= table=20 name, column names, where cluase , and's etc
 
The following method should handle=20 the query
 
List getSelect(String tablename, List=20 columnnames, List Orderby,.....) etc {
 
 
return queryresult
}  
 
 
Any ideas appreciated
Thank you
Vinay
------=_NextPart_000_00CD_01C34470.262DAF60--