pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Portable Java Data Layer based on JDBC
5+ messages / 5 participants
[nested] [flat]

* Portable Java Data Layer based on JDBC
@ 2004-06-17 21:08 Albretch <lbrtchx@hotmail.com>
  2004-06-17 21:39 ` Re: Portable Java Data Layer based on JDBC Bryce <spamtrap@berzerker-soft.com>
  0 siblings, 1 reply; 5+ messages in thread

From: lbrtchx@hotmail.com @ 2004-06-17 21:08 UTC (permalink / raw)
  To: pgsql-jdbc

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 :-))?



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Portable Java Data Layer based on JDBC
  2004-06-17 21:08 Portable Java Data Layer based on JDBC Albretch <lbrtchx@hotmail.com>
@ 2004-06-17 21:39 ` Bryce <spamtrap@berzerker-soft.com>
  2004-06-17 22:45   ` Re: Portable Java Data Layer based on JDBC Liz <Liz@nospam.com>
  2004-06-17 23:38   ` Re: Portable Java Data Layer based on JDBC Gerbrand van Dieijen <gerbrand@twistedPUNTwarande.net>
  2004-06-18 00:10   ` Re: Portable Java Data Layer based on JDBC Roedy Green <look-on@mindprod.com.invalid>
  0 siblings, 3 replies; 5+ messages in thread

From: Bryce @ 2004-06-17 21:39 UTC (permalink / raw)
  To: pgsql-jdbc

On 17 Jun 2004 14:08:43 -0700, lbrtchx@hotmail.com (Albretch) wrote:

> Do you know of something like that already out there (preferably open
>source :-))?

IBatis, Hibernate, just to name a couple.

http://www.ibatis.com/
is probably closer to what you want.

http://www.hibernate.org/
provides a very nice object to relational mapping.

I'm sure there are many others.

--
now with more cowbell



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Portable Java Data Layer based on JDBC
  2004-06-17 21:08 Portable Java Data Layer based on JDBC Albretch <lbrtchx@hotmail.com>
  2004-06-17 21:39 ` Re: Portable Java Data Layer based on JDBC Bryce <spamtrap@berzerker-soft.com>
@ 2004-06-17 22:45   ` Liz <Liz@nospam.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Liz @ 2004-06-17 22:45 UTC (permalink / raw)
  To: pgsql-jdbc


"Bryce" <spamtrap@berzerker-soft.com> wrote in message
news:bq34d01due4kpvrih1k3vuuvdad2hs9iuc@4ax.com...
> On 17 Jun 2004 14:08:43 -0700, lbrtchx@hotmail.com (Albretch) wrote:
>
> > Do you know of something like that already out there (preferably open
> >source :-))?
>
> IBatis, Hibernate, just to name a couple.
>
> http://www.ibatis.com/
> is probably closer to what you want.
>
> http://www.hibernate.org/
> provides a very nice object to relational mapping.
>
> I'm sure there are many others.
>
> --
> now with more cowbell

If you limit yourself to the subset of SQL that is standard
there should be no trouble. Just need to change the name of the Driver.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Portable Java Data Layer based on JDBC
  2004-06-17 21:08 Portable Java Data Layer based on JDBC Albretch <lbrtchx@hotmail.com>
  2004-06-17 21:39 ` Re: Portable Java Data Layer based on JDBC Bryce <spamtrap@berzerker-soft.com>
@ 2004-06-17 23:38   ` Gerbrand van Dieijen <gerbrand@twistedPUNTwarande.net>
  2 siblings, 0 replies; 5+ messages in thread

From: gerbrand@twistedPUNTwarande.net @ 2004-06-17 23:38 UTC (permalink / raw)
  To: pgsql-jdbc

On Thu, 17 Jun 2004 17:39:41 -0400, Bryce wrote:
>
>IBatis, Hibernate, just to name a couple.
>
>http://www.ibatis.com/
>is probably closer to what you want.
>
>http://www.hibernate.org/
>provides a very nice object to relational mapping.
>
>I'm sure there are many others.

There's JDO of course, with many implementations:
http://java.sun.com/products/jdo/index.jsp and http://jdocentral.com/


-- 
Gerbrand van Dieijen




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Portable Java Data Layer based on JDBC
  2004-06-17 21:08 Portable Java Data Layer based on JDBC Albretch <lbrtchx@hotmail.com>
  2004-06-17 21:39 ` Re: Portable Java Data Layer based on JDBC Bryce <spamtrap@berzerker-soft.com>
@ 2004-06-18 00:10   ` Roedy Green <look-on@mindprod.com.invalid>
  2 siblings, 0 replies; 5+ messages in thread

From: Roedy Green @ 2004-06-18 00:10 UTC (permalink / raw)
  To: pgsql-jdbc

On Thu, 17 Jun 2004 17:39:41 -0400, Bryce
<spamtrap@berzerker-soft.com> wrote or quoted :

>IBatis, Hibernate, just to name a couple.
>
>http://www.ibatis.com/
>is probably closer to what you want.

for more, see http://mindprod.com/jgloss/or.html

-- 
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2004-06-18 00:10 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-06-17 21:08 Portable Java Data Layer based on JDBC Albretch <lbrtchx@hotmail.com>
2004-06-17 21:39 ` Bryce <spamtrap@berzerker-soft.com>
2004-06-17 22:45   ` Liz <Liz@nospam.com>
2004-06-17 23:38   ` Gerbrand van Dieijen <gerbrand@twistedPUNTwarande.net>
2004-06-18 00:10   ` Roedy Green <look-on@mindprod.com.invalid>

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