Hitachi

Hitachi Advanced Database Application Development Guide


8.7.1 List of the methods in the ResultSetMetaData interface

Organization of this subsection

(1) Main functions of the ResultSetMetaData interface

The ResultSetMetaData interface provides the following main function:

(2) Methods in the ResultSetMetaData interface that are supported by HADB

The following table lists and describes the methods in the ResultSetMetaData interface that are supported by HADB.

Table 8‒70: Methods in the ResultSetMetaData interface

No.

Method in the ResultSetMetaData interface

Function

1

getCatalogName(int column)

Acquires the catalog name for a specified column in a table.

2

getColumnClassName(int column)

Acquires the fully specified Java class name for the data type of a column.

3

getColumnCount()

Acquires the number of columns in the ResultSet object.

4

getColumnDisplaySize(int column)

Acquires a specified column's maximum width (in characters).

5

getColumnLabel(int column)

Acquires a recommended print or display title for a specified column.

6

getColumnName(int column)

Acquires a specified column's column name.

7

getColumnType(int column)

Acquires a specified column's SQL data type.

8

getColumnTypeName(int column)

Acquires a specified column's data type.

9

getPrecision(int column)

Acquires a specified column's length (in digits).

10

getScale(int column)

Acquires the number of decimal places in a specified column.

11

getSchemaName(int column)

Acquires a specified column's schema name.

12

getTableName(int column)

Acquires the name of a specified column's table.

13

isAutoIncrement(int column)

Returns a value indicating whether a specified column is both numbered automatically and treated as being read-only.

14

isCaseSensitive(int column)

Returns a value indicating whether a specified column is case sensitive.

15

isCurrency(int column)

Returns a value indicating whether a specified column is for currency values.

16

isDefinitelyWritable(int column)

Returns a value indicating whether write operations on a specified column will be successful.

17

isNullable(int column)

Returns a value indicating whether the null value can be set in a specified column.

18

isReadOnly(int column)

Returns a value indicating whether a specified column's values are read-only.

19

isSearchable(int column)

Returns a value indicating whether a specified column can be specified in a where clause.

20

isSigned(int column)

Returns a value indicating whether a specified column is for signed numeric values.

21

isWritable(int column)

Returns a value indicating whether write operations on a specified column can be successful.

Important

HADB does not support methods that are not listed in this table. If an unsupported method is executed, an SQLException might be thrown.

(3) Required package name and class name

The package and class names required in order to use the ResultSetMetaData interface are as follows: