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 Methods and Design Ideas 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 "Methods and Design Ideas" Watch "Methods and Design Ideas" New topic

Methods and Design Ideas

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

Up to this point, when I need to write data to my database, I use the getText() method of my TextFields, store that information in variables, and then send that information to a method that write the information to the Database using JDBC. Simply by plugging the variables into my SQL Statement.
Well, now I am looking for different methods of doing this. Possibly something a little more dynamic so that if I change, remove, or add a TextField, I don't have to dig through 3 different methods and change everything.
I would really like to hear some ideas on design and some methods that anyone else has used to do this very thing.
I realize this could also possibly be more of a SWING or even possibly just a general java question, so if any moderators feel the need to move this elsewhere, please do so.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Methods and Design Ideas
Similar Threads
NX: File Consistency
problems comparing two people for a dating agency program
NX: extends DB and fire listener
can I ask a big favor?
simple question on class variables accessability.