Hitachi

Hitachi Advanced Database Application Development Guide


8.6.67 getSchemas()

Organization of this subsection

(1) Function

This method acquires schema names.

The information about schemas that can be acquired depends on the privileges of the HADB user who executes this method. For details about the privileges and the schema information that can be acquired, see the topic Scope of information in dictionary tables and system tables that can be referenced by HADB users in the HADB Setup and Operation Guide.

(2) Format

public synchronized ResultSet getSchemas() throws SQLException

(3) Arguments

None.

(4) Return value

The method returns a ResultSet object. The following table shows the format of the ResultSet object that is returned.

Table 8‒59: Format of the ResultSet object that is returned (getSchemas method)

Column No.

Type

Column name

Description

1

String

TABLE_SCHEM

Schema name

2

String

TABLE_CATALOG

The method always returns a null character string.

(5) Exceptions

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