PreparedStatement stmt = conn.prepareStatement(query.toString());
try {
for (int i = 0, n = parameters.size(); i < n; i++) {
stmt.setObject(i + 1, parameters.get(i));
}
return new RdbmsStatementCursor(vf, stmt, ids);
}
catch (SQLException e) {
stmt.close();
throw e;
}