✗
public class DriverManager
extends java.lang.Object
Methods
- ✗public static void deregisterDriver(java.sql.Driver arg0) throws java.sql.SQLExceptionComparing jdbc-MR4.4 and jdbc-MR4.3
deregisterDriver
Removes the specified driver from theDriverManager
's list of registered drivers.If a
null
value is specified for the driver to be removed, then no action is taken.If a security manager exists, its
checkPermission
method is first called with aSQLPermission("deregisterDriver")
permission to check that the caller is allowed to deregister a JDBC Driver. If the specified driver is not found in the list of registered drivers, then no action is taken. If the driver was found, it will be removed from the list of registered drivers.If a
DriverAction
instance was specified when the JDBC driver was registered, its deregister method will be called prior to the driver being removed from the list of registered drivers.- Parameters:
driver
- the JDBC Driver to remove- Throws:
SQLException
- if a database access error occursSecurityException
- if a security manager exists and itscheckPermission
method denies permission to deregister a driver.- See Also:
SecurityManager.checkPermission(java.security.Permission)
- ✓public static java.util.stream.Stream<java.sql.Driver> drivers()
- ✓public static java.sql.Connection getConnection(java.lang.String arg0) throws java.sql.SQLException
- ✓public static java.sql.Connection getConnection(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.sql.SQLException
- ✓public static java.sql.Connection getConnection(java.lang.String arg0, java.util.Properties arg1) throws java.sql.SQLException
- ✓public static java.sql.Driver getDriver(java.lang.String arg0) throws java.sql.SQLException
- ✓public static java.util.Enumeration<java.sql.Driver> getDrivers()
- ✓@Deprecated(since="1.2")
public static java.io.PrintStream getLogStream() - ✓public static java.io.PrintWriter getLogWriter()
- ✓public static int getLoginTimeout()
- ✓public static void println(java.lang.String arg0)
- ✓public static void registerDriver(java.sql.Driver arg0) throws java.sql.SQLException
- ✓public static void registerDriver(java.sql.Driver arg0, java.sql.DriverAction arg1) throws java.sql.SQLException
- ✗@Deprecated(since="1.2")
public static void setLogStream(java.io.PrintStream arg0)Comparing jdbc-MR4.4 and jdbc-MR4.3 Moved out of an unordered list with class tag-list-long.Moved to an unordered list with class tag-list.setLogStream
Deprecated.Sets the logging/tracing PrintStream that is used by theDriverManager
and all drivers.Moved out of a paragraph. If a security manager exists, itscheckPermission
method is first called with aSQLPermission("setLog")
permission to check that the caller is allowed to callsetLogStream
.- Parameters:
out
- the new logging/tracing PrintStream; to disable, set tonull
- Throws:
SecurityException
- if a security manager exists and itscheckPermission
method denies permission to set the log stream.- See Also:
SecurityManager.checkPermission(java.security.Permission)
Moved out of an unordered list with class tag-list-long.Moved to an unordered list with class tag-list.
- ✗public static void setLogWriter(java.io.PrintWriter arg0)Comparing jdbc-MR4.4 and jdbc-MR4.3
Moved out of an unordered list with class tag-list-long.Moved to an unordered list with class tag-list.setLogWriter
Sets the logging/tracingPrintWriter
object that is used by theDriverManager
and all drivers.Moved out of a paragraph. If a security manager exists, itscheckPermission
method is first called with aSQLPermission("setLog")
permission to check that the caller is allowed to callsetLogWriter
.- Parameters:
out
- the new logging/tracingPrintStream
object;null
to disable logging and tracing- Throws:
SecurityException
- if a security manager exists and itscheckPermission
method denies permission to set the log writer.- Since:
- 1.2
- See Also:
SecurityManager.checkPermission(java.security.Permission)
Moved out of an unordered list with class tag-list-long.Moved to an unordered list with class tag-list.
- ✓public static void setLoginTimeout(int arg0)
Summary
Elements | Comments | Descriptions | Total | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
deregisterDriver(Driver) | 1 | 8 | 9 | |||||||
setLogStream(PrintStream) | 7 | 7 | 14 | |||||||
setLogWriter(PrintWriter) | 7 | 7 | 14 | |||||||
Total | 15 | 22 | 37 |
setLogWriter