10.5.19 setUser(String user)
- Organization of this subsection
(1) Function
This method specifies the authorization identifier to be used to connect to the HADB server.
When the methods listed below are executed, the authorization identifier and password specified by setUser and setPassword, respectively, are used to connect to the HADB server.
-
getConnection method of the DataSource interface (with no argument specified)
-
getPooledConnection method of the ConnectionPoolDataSource interface
Specification priorities apply to the authorization identifier. For details, see 7.3.3 Connection information priorities.
(2) Format
public synchronized void setUser(String user) throws SQLException
(3) Arguments
- String user
-
Specifies the authorization identifier that is to be used to connect to the HADB server. If null is specified, the JDBC driver assumes that no authorization identifier is specified by this method.
(4) Return value
None.
(5) Exceptions
If the length of the character string specified for user is zero, the JDBC driver throws an SQLException.