Executes a SQL query as a prepared statement, setting its fields to the elements of the vararg passed @param command The SQL command to execute @param fields A vararg of the fields to set in the prepared statement
(String command, Object... fields)
| 196 | * @param fields A vararg of the fields to set in the prepared statement |
| 197 | */ |
| 198 | public void execute(String command, Object... fields) { |
| 199 | try { |
| 200 | PreparedStatement statement = prepareStatement(command, fields); |
| 201 | statement.execute(); |
| 202 | statement.close(); |
| 203 | } catch (SQLException e) { |
| 204 | sneakyThrow(e); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Executes a SQL query as a prepared statement, setting its fields to the elements of the vararg passed |
no test coverage detected