8.4.15 setBoolean(int parameterIndex, boolean x)
- Organization of this subsection
(1) Function
This method sets a specified boolean value as a dynamic parameter value.
(2) Format
public synchronized void setBoolean(int parameterIndex, boolean x) throws SQLException
(3) Arguments
- int parameterIndex
-
Specifies the number of a dynamic parameter.
- boolean x
-
Specifies the value to be set in the specified dynamic parameter.
(4) Return value
None.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The PreparedStatement object is closed.
-
The Connection object that created this PreparedStatement object is closed.
-
A nonexistent dynamic parameter number was specified.
-
This method does not support the HADB data type specified in the dynamic parameter.