use of org.apache.derby.iapi.sql.ParameterValueSet in project derby by apache.
the class EmbedPreparedStatement method clearParameters.
/**
* <P>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 clearParameters.
* @exception SQLException thrown on failure.
*/
public void clearParameters() throws SQLException {
checkStatus();
ParameterValueSet pvs = getParms();
if (pvs != null)
pvs.clearParameters();
}
use of org.apache.derby.iapi.sql.ParameterValueSet in project derby by apache.
the class EmbedPreparedStatement method executeBatchElement.
boolean executeBatchElement(Object batchElement) throws SQLException, StandardException {
ParameterValueSet temp = (ParameterValueSet) batchElement;
int numberOfParameters = temp.getParameterCount();
for (int j = 0; j < numberOfParameters; j++) {
temp.getParameter(j).setInto(this, j + 1);
}
return super.executeStatement(activation, false, true);
}
Aggregations