Hitachi

Hitachi Advanced Database Application Development Guide


10.5.1 List of the methods in the connection information setup and acquisition interface

The DataSource and ConnectionPoolDataSource classes provide the HADB-specific methods described in the table below, in addition to the methods that are standardized for the JDBC 2.0 Optional Package.

Table 10‒5: Methods in the connection information setup and acquisition interface

No.

Method

Function

1

getApName()

Acquires the application identifier that was specified by the setApName method.

2

getEncodeLang()

Acquires the name of the conversion character set that was specified in the setEncodeLang method.

3

getInterfaceMethodTrace()

Acquires the status of acquisition of JDBC interface method traces that was specified by the setInterfaceMethodTrace method.

4

getNotErrorOccurred()

Acquires the setting as to whether generation of ConnectionEventListener.connectionErrorOccurred is to be suppressed.

5

getPassword()

Acquires the password that was specified by the setPassword method.

6

getSQLWarningKeep()

Acquires the setting as to whether warning information generated during execution of SQL statements is to be retained.

7

getTraceNumber()

Acquires the number of entries for a JDBC interface method trace that was specified by the setTraceNumber method.

8

getUser()

Acquires the authorization identifier that was specified by the setUser method.

9

getHostName()

Acquires the host name of the HADB server that was specified by the setHostName method.

10

getPort()

Acquires the port number of the HADB server that was specified by the setPort method.

11

setApName(String name)

Specifies the application identifier for connecting to the HADB server.

12

setEncodeLang(String lang)

Specifies the name of the conversion character set to be used when conversion of character encoding is performed.

13

setInterfaceMethodTrace(boolean flag)

Specifies whether JDBC interface method traces are to be acquired.

14

setNotErrorOccurred(boolean mode)

Specifies the setting as to whether generation of ConnectionEventListener.connectionErrorOccurred is to be suppressed.

15

setPassword(String password)

Specifies a password for the authorization identifier that is used to connect to the HADB server.

16

setSQLWarningKeep(boolean mode)

Specifies the setting as to whether warning information generated during execution of SQL statements is to be retained.

17

setTraceNumber(int num)

Specifies the number of entries for a JDBC interface method trace.

18

setUser(String user)

Specifies the authorization identifier to be used to connect to the HADB server.

19

setHostName(String name)

Specifies the host name of the HADB server at the connection destination.

20

setPort(int port)

Specifies the port number of the HADB server at the connection destination.