Example usage for Java java.sql DriverManager fields, constructors, methods, implement or subclass
The text is from its open source code.
void | deregisterDriver(Driver driver) Removes the specified driver from the DriverManager 's list of registered drivers. |
Connection | getConnection(String url, String user, String password) Attempts to establish a connection to the given database URL. |
Connection | getConnection(String url, java.util.Properties info, Class> caller) |
Connection | getConnection(String url) Attempts to establish a connection to the given database URL. |
Connection | getConnection(String url, java.util.Properties info) Attempts to establish a connection to the given database URL. |
Driver | getDriver(String url) Attempts to locate a driver that understands the given URL. |
Enumeration | getDrivers() Retrieves an Enumeration with all of the currently loaded JDBC drivers to which the current caller has access. |
int | getLoginTimeout() Gets the maximum time in seconds that a driver can wait when attempting to log in to a database. |
java.io.PrintWriter | getLogWriter() Retrieves the log writer. |
void | println(String message) Prints a message to the current JDBC log stream. |
void | registerDriver(java.sql.Driver driver) Registers the given driver with the DriverManager . |
void | setLoginTimeout(int seconds) Sets the maximum time in seconds that a driver will wait while attempting to connect to a database once the driver has been identified. |
void | setLogStream(java.io.PrintStream out) Sets the logging/tracing PrintStream that is used by the DriverManager and all drivers. |
void | setLogWriter(java.io.PrintWriter out) Sets the logging/tracing PrintWriter object that is used by the DriverManager and all drivers. |