Hitachi

Hitachi Advanced Database Application Development Guide


8.6.20 getDatabaseMajorVersion()

Organization of this subsection

(1) Function

This method acquires the major version of the database (HADB server).

(2) Format

public synchronized int getDatabaseMajorVersion() throws SQLException

(3) Arguments

None.

(4) Return value

The method returns the HADB server's major version.

For example, if the HADB server's version is 01-00, the method returns 1 of the int type.

This return value is the same as the server's major version displayed in the header of SQL traces output by the JDBC driver.

(5) Exceptions

If this Connection object is closed before this method is executed, the JDBC driver throws an SQLException.