Method Summary |
|
public static void | deregisterDriver(Driver driver) Removes a driver from the DriverManager's registered driver list. |
public static Connection | getConnection(String url) Attempts to establish a connection to the given database URL.
Parameters: url - a URL string representing the database target to connect with a Connection to the database identified by the URL. |
public static Connection | getConnection(String url, Properties info) Attempts to establish a connection to the given database URL.
Parameters: url - a URL string representing the database target to connect with Parameters: info - a set of Properties to use as arguments to set up theconnection. |
public static Connection | getConnection(String url, String user, String password) Attempts to establish a connection to the given database URL.
Parameters: url - a URL string representing the database target to connect with Parameters: user - a userid used to login to the database Parameters: password - a password for the userid to login to the database a Connection to the database identified by the URL. |
public static Driver | getDriver(String url) Tries to find a driver that can interpret the supplied URL.
Parameters: url - the URL of a database a Driver that can understand the given URL. |
public static Enumeration<Driver> | getDrivers() Returns an Enumeration that contains all of the loaded JDBC drivers that
the current caller can access. |
public static PrintStream | getLogStream() |
public static PrintWriter | getLogWriter() Retrieves the log writer.
A PrintWriter object used as the log writer. |
public static int | getLoginTimeout() Returns the login timeout when connecting to a database, in seconds. |
public static void | println(String message) Prints a message to the current JDBC log stream. |
public static void | registerDriver(Driver driver) Registers a given JDBC driver with the DriverManager. |
public static void | setLogStream(PrintStream out) |
public static void | setLogWriter(PrintWriter out) Sets the PrintWriter that will be used by all loaded drivers, and also
the DriverManager. |
public static void | setLoginTimeout(int seconds) Set the login timeout when connecting to a database, in seconds.
Parameters: seconds - seconds until timeout. |