10.4.1 List of the methods in the PooledConnection interface
The following table lists and describes the methods in the PooledConnection interface that are supported by HADB.
No. |
Method of the PooledConnection interface |
Function |
---|---|---|
1 |
addConnectionEventListener(ConnectionEventListener listener) |
Registers an event listener so that events that occur in this PooledConnection object will be reported. |
2 |
Closes the physical connection with the HADB server. This method closes all physical connections pooled in the connection pool. |
|
3 |
Connects to the HADB server by using a connection pooled in the connection pool. |
|
4 |
removeConnectionEventListener(ConnectionEventListener listener) |
Deletes a specified event listener from the component list that is reported when events occur in this PooledConnection object. |
The package and class names required in order to use the PooledConnection interface are as follows:
-
Package name: com.hitachi.hadb.jdbc
-
Class name: AdbPooledConnection