clearParameters()

Syntax:

void clearParameters()
                     throws SQLException

Description:

Clears the current parameter values immediately.

In general, parameter values remain in force for repeated use of a statement. Setting a parameter value automatically clears its previous value. However, in some cases it is useful to immediately release the resources used by the current parameter values; this can be done by calling the method clearParameters.

Throws:

SQLException - if a database access error occurs or the prepared statement has been closed

Reference:

For more information, reference JDBC documentation for: PreparedStatement.clearParameters()