Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

16.11.7 setUser

(a) Function

Sets the authorization identifier.

(b) Format
 
public void setUser (String user)
 
(c) Argument

String user
Sets the authorization identifier.
(d) Return value

None.

(e) Functional detail

Sets the authorization identifier.

You can specify the authorization identifier 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 an authorization identifier, and if a DB connection method that has an authorization identifier and a password set as arguments is also called, the authorization identifier setting specified by the DB connection method takes precedence.

For details about specifying an authorization identifier, see Table 16-2 Arguments of the getConnection method.

(f) Exception that occurs

None.