Hitachi

Hitachi Advanced Database Application Development Guide


10.2.1 List of the methods in the DataSource interface

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

Table 10‒2: Methods in the DataSource interface

No.

Method of the DataSource interface

Function

1

getConnection()

Connects to the HADB server.

2

getConnection(String username, String password)

3

getLoginTimeout()

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

4

getLogWriter()

Acquires the DataSource object's log writer.

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 DataSource object.

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