Hitachi

Hitachi Advanced Database Application Development Guide


8.6.12 getCatalogs()

Organization of this subsection

(1) Function

This method acquires a catalog name.

(2) Format

public synchronized ResultSet getCatalogs() throws SQLException

(3) Arguments

None.

(4) Return value

This method always returns a ResultSet object that contains no retrieval result rows. The following table shows the format of the ResultSet object that is returned.

Table 8‒45: Format of the ResultSet object that is returned (getCatalogs method)

Column No.

Type

Column name

Description

1

String

TABLE_CAT

Catalog name

(5) Exceptions

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