{
throw new IllegalArgumentException("Bulk update must be executed on a prepared statement");
}
PreparedStatement preparedStatement = (PreparedStatement) statement;
PreparedBulkQueryLogger queryLogger = queryLoggerFactory.createBulkQueryLogger(logger, query.getQueryTemplate(), paramValues.size());
try
{
for (List<QueryParamValue> params : paramValues)
{
doProcessParameters(preparedStatement, query.getQueryTemplate(), params, queryLogger);
preparedStatement.addBatch();
queryLogger.addParameterSet();
}
queryLogger.logQuery();
return preparedStatement.executeBatch();
}
finally
{