11.2.9 isNullable(int param)
- Organization of this subsection
(1) Function
This method returns a value indicating whether the null value can be set in a specified parameter.
(2) Format
public synchronized int isNullable(int param) throws SQLException
(3) Arguments
- int param
-
Specifies a parameter number (beginning with 1).
(4) Return value
The method returns one of the following values:
-
ParameterMetaData.parameterNoNulls: The null value cannot be set.
-
ParameterMetaData.parameterNullable: The null value can be set.
(5) Exceptions
If the specified param value is 0 or less, or is greater than the number of parameters, the JDBC driver throws an SQLException.