Hitachi

Hitachi Advanced Database Application Development Guide


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.

Table 10‒4: Methods in the PooledConnection interface

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

close()

Closes the physical connection with the HADB server. This method closes all physical connections pooled in the connection pool.

3

getConnection()

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: