Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2004

Tip: Looking for answers? Try searching our database.

Portable Java Data Layer based on JDBC

Thread view: 
Albretch - 17 Jun 2004 22:08 GMT
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 :-))?
Bryce - 17 Jun 2004 22:39 GMT
> 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
Liz - 17 Jun 2004 23:45 GMT
> > Do you know of something like that already out there (preferably open
> >source :-))?
[quoted text clipped - 11 lines]
> --
> 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.
Gerbrand van Dieijen - 18 Jun 2004 00:38 GMT
>IBatis, Hibernate, just to name a couple.
>
[quoted text clipped - 5 lines]
>
>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/

Signature

Gerbrand van Dieijen

Roedy Green - 18 Jun 2004 01:10 GMT
>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

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.