Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

16.11.9 setPassword

(a) Function

Sets a password.

(b) Format
 
public void setPassword (String password)
 
(c) Argument

String password
Specifies a password.
(d) Return value

None.

(e) Functional detail

Sets a password.

You can specify the password using an argument of the DataSource.getConnection method, ConnectionPoolDataSource.getPooledConnection method, or XADataSource.getXAConnection method (which are referred to generically as the DB connection methods).

If this method is used to set a password, and if a DB connection method that has an authorization identifier and a password set as arguments is also called, the password setting specified by the DB connection method takes precedence.

(f) Exception that occurs

None.