![]() |
|
|
#1 |
|
Member
Join Date: Feb 2005
Location: ANtwerp - Belgium
Posts: 34
|
How to connect to MySQL (2)
If you're building java web applications, it is best you write them following the Model View Controller pattern design.
Therefor, you will need DAO's or Data Access Objects. These are classes which contain all the SQL statements you need to look up the information of your MySQL database. And a very good trick is to use an abstract class GeneralDao. Here you define which driver you will use. All other DAO's will inherit from this abstract class. The advantage of this is that you will have to change in just one class if you are changing the database driver. here's the code Code:
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Import Access, Excel and data of other formats to MySQL by Navicat | NavicatGuy | Articles | 0 | 08-17-2004 01:08 AM |
| 3.2 Entering Queries | Administrator | Documentation | 0 | 06-09-2004 02:58 AM |
| 1.4.3.2 Using the MySQL Software for Free Under GPL | Administrator | Documentation | 0 | 06-08-2004 02:20 AM |
| 1.2.2 The Main Features of MySQL | Administrator | Documentation | 0 | 06-08-2004 01:55 AM |
| 1.2 Overview of the MySQL Database Management System | Administrator | Documentation | 0 | 06-07-2004 10:11 PM |