Java java.sql DriverManager fields, constructors, methods, implement or subclass

Example usage for Java java.sql DriverManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql DriverManager.

The text is from its open source code.

Method

voidderegisterDriver(Driver driver)
Removes the specified driver from the DriverManager 's list of registered drivers.
ConnectiongetConnection(String url, String user, String password)
Attempts to establish a connection to the given database URL.
ConnectiongetConnection(String url, java.util.Properties info, Class caller)
ConnectiongetConnection(String url)
Attempts to establish a connection to the given database URL.
ConnectiongetConnection(String url, java.util.Properties info)
Attempts to establish a connection to the given database URL.
DrivergetDriver(String url)
Attempts to locate a driver that understands the given URL.
EnumerationgetDrivers()
Retrieves an Enumeration with all of the currently loaded JDBC drivers to which the current caller has access.
intgetLoginTimeout()
Gets the maximum time in seconds that a driver can wait when attempting to log in to a database.
java.io.PrintWritergetLogWriter()
Retrieves the log writer.
voidprintln(String message)
Prints a message to the current JDBC log stream.
voidregisterDriver(java.sql.Driver driver)
Registers the given driver with the DriverManager .
voidsetLoginTimeout(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.
voidsetLogStream(java.io.PrintStream out)
Sets the logging/tracing PrintStream that is used by the DriverManager and all drivers.
voidsetLogWriter(java.io.PrintWriter out)
Sets the logging/tracing PrintWriter object that is used by the DriverManager and all drivers.