Nonstop Database, HiRDB Version 9 UAP Development Guide
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.
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) | -- |
The names of the package and class for using this interface directly are as follows:
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.