public class DriverManager
extends java.lang.Object
Constructor and Description |
---|
DriverManager() |
Modifier and Type | Method and Description |
---|---|
static void |
deregisterDriver(Driver driver) |
static Connection |
getConnection(java.lang.String url) |
static Connection |
getConnection(java.lang.String url,
Properties info) |
static Connection |
getConnection(java.lang.String url,
java.lang.String user,
java.lang.String password) |
static Driver |
getDriver(java.lang.String url) |
static Driver[] |
getDrivers() |
static int |
getLoginTimeout() |
static Logger |
getLogWriter() |
static void |
println(java.lang.String message) |
static void |
registerDriver(Driver driver) |
static void |
setLoginTimeout(int seconds) |
static void |
setLogWriter(Logger out) |
public static Logger getLogWriter()
public static void setLogWriter(Logger out)
public static Connection getConnection(java.lang.String url, Properties info) throws java.sql.SQLException
java.sql.SQLException
public static Connection getConnection(java.lang.String url, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
public static Connection getConnection(java.lang.String url) throws java.sql.SQLException
java.sql.SQLException
public static Driver getDriver(java.lang.String url) throws java.sql.SQLException
java.sql.SQLException
public static void registerDriver(Driver driver) throws java.sql.SQLException
java.sql.SQLException
public static void deregisterDriver(Driver driver) throws java.sql.SQLException
java.sql.SQLException
public static Driver[] getDrivers()
public static void setLoginTimeout(int seconds)
public static int getLoginTimeout()
public static void println(java.lang.String message)