Hitachi

Hitachi Advanced Database Application Development Guide


10.5.20 setHostName(String name)

Organization of this subsection

(1) Function

This method specifies the host name of the HADB server at the connection destination.

Specification priorities apply to the host name of the HADB server. For details, see 7.3.3 Connection information priorities.

(2) Format

public synchronized void setHostName(String name) throws SQLException

(3) Arguments

String name

Specifies the host name of the HADB server at the connection destination. If null is specified, the JDBC driver assumes that no host name is specified by this method.

(4) Return value

None.

(5) Exceptions

If the value specified for name is invalid (such as a character string with a length of 0 bytes or less or 256 bytes or greater), the JDBC driver throws an SQLException.