Hitachi

Hitachi Advanced Database Application Development Guide


10.5.11 getPort()

Organization of this subsection

(1) Function

This method acquires the port number of the HADB server that was specified by the setPort method.

(2) Format

public synchronized int getPort() throws SQLException

(3) Arguments

None.

(4) Return value

This method returns the port number of the HADB server that was specified by the setPort method. If the setPort method has not been executed, the method returns -1.

(5) Exceptions

None.