This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Data Wrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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
Similar Threads
Track the closing of client application launched through Java Web Start
JPopupMenu JMenuItem and JMenuItem : Listen to each other?
Servlets 4a question
Merging a data from one table into other.
Clob and String