Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

18.6.5 XADataSource interface

For details and usage information about the methods provided by the XADataSource interface, see the JDBC documentation. This section shows the XADataSource interface methods that are supported by the JDBC driver.

Organization of this subsection
(1) Methods
(2) Package and class names

(1) Methods

The following table lists the methods of the XADataSource interface.

Table 18-62 XADataSource interface methods

Method Remarks
getLoginTimeout() Returns the value specified by the setLoginTimeout method. If no value was set by the setLoginTimeout method, this method returns 0.
getLogWriter() --
getXAConnection() For details about the priorities among the setting methods for authorization identifiers and passwords, see 18.11 Connection information priorities.
getXAConnection(String username,String password) If the user or password argument is the null value, this method indicates that no authorization identifier or password was specified by this argument.
If the password argument is a character string whose length is 0, this method indicates that no password was specified.
For details about the setting value used when a password is not specified, see 18.11 Connection information priorities.
If the user argument is a character string whose length is 0, this method throws an SQLException.
setLoginTimeout(int seconds) This specification is used only for the physical connection time with the HiRDB server. When 0 is specified or when the setLoginTimeout method is not executed, the time that was specified in PDCONNECTWAITTIME in the client environment definition becomes the maximum wait time for the HiRDB server.
If a value outside the range 0-300 is specified, this method throws an SQLException.
setLogWriter(PrintWriter out) --

Legend:
--: None

(2) Package and class names

The names of the package and class for using this interface directly are as follows:

Package name: JP.co.Hitachi.soft.HiRDB.JDBC

Class name: PrdbXADataSource