Hitachi

Hitachi Advanced Database Application Development Guide


11.2.1 List of the methods in the ParameterMetaData interface

Organization of this subsection

(1) Main functions of the ParameterMetaData interface

The ParameterMetaData interface provides the following main function:

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

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

Table 11‒2: Methods in the ParameterMetaData interface

No.

Method of the ParameterMetaData interface

Function

1

getParameterClassName(int param)

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

2

getParameterCount()

Acquires the number of parameters in the PreparedStatement object.

3

getParameterMode(int param)

Acquires a specified parameter's mode.

4

getParameterType(int param)

Acquires a specified parameter's SQL data type.

5

getParameterTypeName(int param)

Acquires a specified parameter's data type.

6

getPrecision(int param)

Acquires the number of digits in a specified parameter.

7

getScale(int param)

Acquires the number of decimal places in a specified parameter.

8

isNullable(int param)

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

9

isSigned(int param)

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

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 parameter name and class name

The package and class names required to use the ParameterMetaData interface are as follows: