This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Data Wrapper" Watch "Data Wrapper" New topic
Author

Data Wrapper

mark baum
Greenhorn

Joined: Aug 21, 2001
Posts: 18
Hi,
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.
Cheers
Markus
David O'Meara
Rancher

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!
Dave.
 
GeeCON Prague 2014
 
subject: Data Wrapper