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:
-
Return of meta information, such as the data types and data lengths of parameters in the PreparedStatement object
(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.
No. |
Method of the ParameterMetaData interface |
Function |
---|---|---|
1 |
Acquires the fully specified Java class name for the data type of a parameter. |
|
2 |
Acquires the number of parameters in the PreparedStatement object. |
|
3 |
Acquires a specified parameter's mode. |
|
4 |
Acquires a specified parameter's SQL data type. |
|
5 |
Acquires a specified parameter's data type. |
|
6 |
Acquires the number of digits in a specified parameter. |
|
7 |
Acquires the number of decimal places in a specified parameter. |
|
8 |
Returns a value indicating whether the null value can be set in a specified parameter. |
|
9 |
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:
-
Package name: com.hitachi.hadb.jdbc
-
Class name: AdbParameterMetaData