File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Data Wrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Data Wrapper" Watch "Data Wrapper" New topic

Data Wrapper

mark baum

Joined: Aug 21, 2001
Posts: 18
I'm looking for a way (or tool) to separate the logic for the reading and saving data to and from the database from the logic of the class defining what actually has to be done with the data. JDBC is a great tool indeed, but if the class containing the "business" logic reads in the data from the db, the code is getting hard to read. Since the reading and saving data seems to be quite repetitive I thougt there might be a way to have a wrapper for each table, reading in one line of that table either in a sequence or based on a search pattern for a field.
So befor I start to do this myself, I thought I ask if someone has already written something like this or knows a tool for that purpose.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

If the queries you are making are fairly standard, you might want to try JDO. If you get it working you can come back and write a review for us!
I agree. Here's the link:
subject: Data Wrapper
jQuery in Action, 3rd edition