Choosing between the Driver and DriverManager Methods

From InterBase

Go Up to Opening a Database Connection


Suppose that you have created an explicit driver object. Even though you could use the driver's connect() method, you should always use the generic JDBC methods and classes unless there is some specific reason not to, such as the ones discussed previously. For example, suppose you declared an explicit driver object so you could get driver version numbers, but now you need to create a connection to the database. You should still use the DriverManager.getConnection() method to create a connection object instead of the driver.connect() method.

Note:
This is not the case when you are using the InterClient Monitor extension to trace a connection. See Debugging your Application for a detailed explanation.

Advance To: