Jdbc - Driver Manager

Jdbc Class Architecture

About

DriverManager

JDBC 4.1 specification, when the DriverManager is trying to establish a connection:

  • it calls the driver’s connect method
  • and passes the URL.

If the Driver implementation:

  • understands the URL, it will:
    • or throw a SQLException if a connection cannot be maded to the database.
  • does not understand the URL, it will return null.





Discover More
Jdbc Class Architecture
JDBC - Driver

JDBC drivers must implement the java/sql/DriverDriver interface, and the implementation must contain a static initializer that will be called when the driver is loaded. This initializer registers a new...



Share this page:
Follow us:
Task Runner