8.2.1 List of the methods in the Connection interface
- Organization of this subsection
(1) Main functions of the Connection interface
The Connection interface provides the following main functions:
-
Creation of the Statement and PreparedStatement class objects
-
Transaction settlement (commit or rollback)
-
Specification of the automatic commit mode
(2) Methods in the Connection interface that are supported by HADB
The following table lists and describes the methods in the Connection interface that are supported by HADB.
No. |
Method in the Connection interface |
Function |
---|---|---|
1 |
Clears all warnings reported to the Connection object. |
|
2 |
Closes the connection with the HADB server. |
|
3 |
Applies all changes made since the most recent commit or rollback. |
|
4 |
Creates a Statement object for sending an SQL statement to the HADB server. |
|
5 |
createStatement(int resultSetType, int resultSetConcurrency) |
|
6 |
createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
|
7 |
Acquires the current automatic commit mode for this Connection object. |
|
8 |
Acquires the current catalog name for this Connection object. |
|
9 |
Acquires the connection ID that is assigned to this Connection object. |
|
10 |
Acquires the connection sequence number that is assigned to this Connection object. |
|
11 |
Acquires for this Connection object the sort order for character string data in a SELECT statement in which the ORDER BY clause is specified. |
|
12 |
Acquires the size of the hash filter area that is set for this Connection object. |
|
13 |
Acquires the size of the hash table area that is set for this Connection object. |
|
14 |
Acquires the maximum number of SQL processing real threads that is set for this Connection object. |
|
15 |
Acquires the transaction ID of the transaction that is being executed. |
|
16 |
Acquires the current holdability of the ResultSet object that is created by using this Connection object. |
|
17 |
Creates a DatabaseMetaData object. |
|
18 |
Acquires the current schema name for this Connection object. |
|
19 |
Acquires the current transaction isolation level for this Connection object. |
|
20 |
Acquires the Map object related to this Connection object. |
|
21 |
Acquires as an SQLWarning object a warning reported by a call related to this Connection object. |
|
22 |
Returns a value indicating whether this Connection object is closed. |
|
23 |
Acquires a value indicating whether this Connection object is in read-only mode. |
|
24 |
Acquires the current connection status. |
|
25 |
Converts escape clauses in a specified SQL statement to a format that can be executed by HADB. |
|
26 |
Creates a PreparedStatement object for sending an SQL statement with parameters to the HADB server. |
|
27 |
prepareStatement(String sql, int resultSetType, int resultSetConcurrency) |
|
28 |
prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
|
29 |
Undoes all changes made by the transaction and releases all locks currently held by the Connection object. |
|
30 |
Sets the automatic commit mode for this connection. |
|
31 |
Sets the passed catalog name and selects a database work subspace for the Connection object. |
|
32 |
Sets the user-specific connection information (user-added information). |
|
33 |
Sets for this Connection object the sort order for character string data in a SELECT statement in which the ORDER BY clause is specified. |
|
34 |
Sets for this Connection object the size of the hash filter area. |
|
35 |
Sets for this Connection object the size of the hash table area. |
|
36 |
Sets for this Connection object the maximum number of SQL processing real threads. |
|
37 |
Sets the holdability of the ResultSet object that is created by using this Connection object. |
|
38 |
Sets this Connection object in the read-only mode. Sets the transaction access mode. |
|
39 |
Sets the name of the schema to access. |
|
40 |
Sets the transaction isolation level for this Connection object. |
- Important
-
HADB does not support methods that are not listed in this table. If an unsupported method is executed, an SQLException might be thrown.
(3) Required package name and class name
The package and class names required in order to use the Connection interface are as follows:
-
Package name: com.hitachi.hadb.jdbc
-
Class name: AdbConnection