10.5.16 setPassword(String password)
- Organization of this subsection
(1) Function
This method specifies a password for the authorization identifier that is 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 password. For details, see 7.3.3 Connection information priorities.
(2) Format
public synchronized void setPassword(String password) throws SQLException
(3) Arguments
- String password
-
Specifies a password for the authorization identifier that is to be used to connect to the HADB server. If null is specified, the JDBC driver assumes that no password is specified by this method.
(4) Return value
None.
(5) Exceptions
None.