| java.lang.Object org.continuent.sequoia.controller.connection.DriverManager
DriverManager | public class DriverManager (Code) | | This class defines a DriverManager. In contrast to java.sql.DriverManager
this class allows to use Drivers with the same name but with different
versions, if no drivername is used it is a wrapper around
java.sql.DriverManager.
author: Emmanuel Cecchet version: 1.0 |
convertToAbsolutePath | public static File convertToAbsolutePath(String pathName) throws IOException(Code) | | convert a path into an absolute path if the path is already an absolute
path, it is just returned otherwise a relative path is considered to be
relative to the drivers directory
Parameters: pathName - the relativ or absolute path the converted path throws: IOException - if the converted path does not exist |
getConnection | public static Connection getConnection(String url, String user, String password, String driverPathName, String driverClassName) throws SQLException(Code) | | 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.
Parameters: url - a database url of the formjdbc:subprotocol:subname Parameters: user - the database user on whose behalf the connection is being made Parameters: password - the user's password Parameters: driverPathName - the path where the driver classes are located, nullif default directory Parameters: driverClassName - the class name of the driver a connection to the URL exception: SQLException - if a database access error occurs |
|
|