JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
JDBC
«Prev
Intro JDBC
Learning JDBC
JDBC Course Project
JDBC Case Study
JDBC Team
Business Case Conclusion
Distributed Objects
Enterprise Solutions JDBC
System Organization Role
Relational Databases
JDBC/ODBC Relationship
Microsoft API ODBC
SQL Database Processing
JDBC Architectural Models
n-tier Architectural Benefits
JDBC Mechanics
Enterprise Conclusion
JDBC Connection
JDBC URL Connection
JDBC Driver
Driver Types
Driver Manager
Sample JDBC Program
JDBC DBMS Conclusion
Database Tables
Statement Objects
Examining Query Results
Accessing Data Methods
Database Metadata
Obtain Database Content
Prepared Statements
Interface ResultSet
Transaction Methods
Isolation Levels
JDBC Sample Program Connections
You are learning about the DriverManager, widely used by business solution developers who use JDBC. Three classes are involved in making connections:
1) java.sql.Driver: implemented by the database vendor and supplied to you. You only need to instantiate it. When a Driver class is loaded, it creates an instance of itself and registers with the DriverManager.
2) java.sql.DriverManager: The DriverManager class maintains a list of Driver implementations and when a request for a connection is made, it searches for one that can connect to the requested URL.
3) java.sql.Connection: You would use this for sending one or more querying, performing transactions and obtaining database metadata.