Driver manager class

337 views
217 views

Published on

http://rajjdbc.blogspot.in

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
337
On SlideShare
0
From Embeds
0
Number of Embeds
18
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Driver manager class

  1. 1. java.sql Class DriverManager
  2. 2. • public class DriverManagerextends Object • { • }
  3. 3. • It is used to loading the driver objects and creating the new database connection objects
  4. 4. • This class represents driver manager service and the registerDriver() in this class is useful to register given jdbc driver class object with driver manger service
  5. 5. methods
  6. 6. getConnection() public static Connection getConnection(String url, String user, String password) throws SQLException { } • DriverManager.getConnection ( ) : This method return you an object of connection. This is used to built a connection between url and database. • Attempts to establish a connection to the given database URL. The DriverManager attempts to select an appropriate driver from the set of registered JDBC drivers.

×