8.1.1 List of the methods in the Driver interface
- Organization of this subsection
(1) Main functions of the Driver interface
The Driver interface provides the following main functions:
-
Connection to a database
-
Validity check of the URL for connection
-
Acquisition of connection properties specified with the DriverManager.getConnection method
-
Return of the JDBC driver version
(2) Methods in the Driver interface that are supported by HADB
The following table lists and describes the methods in the Driver interface that are supported by HADB.
No. |
Method in the Driver interface |
Function |
---|---|---|
1 |
Checks whether a connection can be established with the HADB server by means of the connection information specified by the URL for connection. |
|
2 |
Connects to the HADB server according to the connection information. |
|
3 |
Acquires the JDBC driver's major version. |
|
4 |
Acquires the JDBC driver's minor version. |
|
5 |
Acquires information about the JDBC driver's valid properties. |
|
6 |
Reports whether the JDBC driver is JDBC CompliantTM. |
- Important
-
HADB does not support methods that are not listed in this table. If an unsupported method is executed, an SQLException is thrown.
(3) Required package name and class name
The package and class names required in order to use the Driver interface are as follows:
-
Package name: com.hitachi.hadb.jdbc
-
Class name: HADBDriver