public PreparedStatementCreatorImpl(String actualSql, List parameters) {
this.actualSql = actualSql;
Assert.notNull(parameters, "Parameters List must not be null");
this.parameters = parameters;
if (this.parameters.size() != declaredParameters.size())
throw new InvalidDataAccessApiUsageException(
"SQL [" + sql + "]: given " + this.parameters.size() +
" parameters but expected " + declaredParameters.size());
}