MySQL provides connectivity for client applications developed in the Java programming language through a JDBC driver, which is called MySQL Connector/J.
MySQL Connector/J is a JDBC Type 4 driver. Different versions are available that are compatible with the JDBC 3.0 and JDBC 4.0 specifications. The Type 4 designation means that the driver is pure-Java implementation of the MySQL protocol and does not rely on the MySQL client libraries.
For large-scale programs that use common design patterns of data access, consider using one of the popular persistence frameworks such as Hibernate, Spring's JDBC templates or Ibatis SQL Maps to reduce the amount of JDBC code for you to debug, tune, secure, and maintain.
This section is not designed to be a complete JDBC tutorial. If you need more information about using JDBC you might be interested in the following online tutorials that are more in-depth than the information presented here:
JDBC Basics: A tutorial from Sun covering beginner topics in JDBC
JDBC Short Course: A more in-depth tutorial from Sun and JGuru
For help with connection strings, connection options, and setting up your connection through JDBC, see Section 21.3.5.1, “Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J”.

User Comments
Add your own comment.