Need a MySql class template

I am looking for at template class that connects to a sql server and can get, store and update the database. Is there a template anyone know off?
MickeysAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
objectsConnect With a Mentor Commented:
0
 
CEHJCommented:
See the following and linked examples

http://www.exampledepot.com/egs/java.sql/ConnectMySql.html
0
 
ksivananthCommented:
there are frameworks, try hibernate/ibatis!
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
objectsCommented:
commons dbutils has great helper methods

http://commons.apache.org/dbutils/

0
 
MickeysAuthor Commented:
well the first link was how to connect to a sql server. But what about reading, writing an update?

The other two....how does that work? I have to include some new package or what?
0
 
objectsCommented:
dbutils provides utility methods that can take some of the repetitiveness out of jdbc coding.
there isn't really a template than you can use, not any that are worth using anyway. Most end up making your code more complicated than it needs to be.
0
 
MickeysAuthor Commented:
might be a stupied question but when I download the package I get commons-dbutils-1.2-src.....shouldnt I get some kind of package.jar??? I cant just add that folder. That will give error
0
 
objectsCommented:
thats the source distro, theres also a binary distrubution that contains jar


0
 
MickeysAuthor Commented:
aha. So all I do is download that package. Take out the xx.jar and add it to my project. Then I use the example code to make it work?
0
All Courses

From novice to tech pro — start learning today.