Hitachi

Hitachi Advanced Database Application Development Guide


10.3.1 List of the methods in the ConnectionPoolDataSource interface

The following table lists and describes the methods in the ConnectionPoolDataSource interface that are supported by HADB.

Table 10‒3: Methods in the ConnectionPoolDataSource interface

No.

Method of the ConnectionPoolDataSource interface

Function

1

getLoginTimeout()

Acquires the value set by the setLoginTimeout method (the timeout time for connections to the HADB server).

2

getLogWriter()

Acquires the ConnectionPoolDataSource object's log writer.

3

getPooledConnection()

Creates a PooledConnection object from the connection information specified in the DataSource object.

4

getPooledConnection(String user, String password)

Creates a PooledConnection object from the connection information specified in the arguments and the connection information contained in the DataSource object.

5

setLoginTimeout(int seconds)

Specifies a timeout value (in seconds) for HADB server connection processing.

6

setLogWriter(PrintWriter out)

Sets a log writer for the ConnectionPoolDataSource object.

The package and class names required in order to use the ConnectionPoolDataSource interface are as follows: