The DriverManager class is used for register Database driver. It acts as an interface between user and drivers.
It handles establishing a connection between a database and the appropriate driver.
The DriverManager class maintains a list of Driver classes that have registered themselves by calling the method DriverManager.registerDriver().
public static void registerDriver(Driver driver) | It is used to register the given driver with DriverManager. |
public static void deregisterDriver(Driver driver) | It is used to deregister the given driver with DriverManager. |
public static Connection getConnection(String url) | It is used to establish the connection with the specified url. |
public static Connection getConnection(String url,String userName,String password) | It is used to establish the connection with the specified url, username and password. |
0 comments :
Post a Comment