8.1.2 acceptsURL(String url)
- Organization of this subsection
(1) Function
This method checks whether the JDBC driver can connect to the database specified by the URL.
(2) Format
public boolean acceptsURL(String url) throws SQLException
(3) Arguments
- String url
-
Specifies the URL to be used for a connection.
For details about the specification format of the URL to be used for connection, see (a) Values to be specified in the url argument (specifying the URL for the connection) in (2) Connecting to the HADB server with the getConnection method in 7.3.1 Using the getConnection method of the DriverManager class to connect to the HADB server.
(4) Return value
The method returns true if the JDBC driver can connect to the database specified by the URL; if not, the method returns false.
(5) Exceptions
None.