MCPcopy Create free account
hub / github.com/boxbeam/RedLib / execute

Method execute

src/redempt/redlib/sql/SQLHelper.java:198–206  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

deleteMethod · 0.80
flushMethod · 0.80
openMySQLMethod · 0.80
SQLiteBackendMethod · 0.80

Calls 3

prepareStatementMethod · 0.95
sneakyThrowMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected