MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / query

Method query

Utils/src/eu/the5zig/util/db/SQLQuery.java:30–37  ·  view source on GitHub ↗

Executes a MySQL Query and returns a List of all affected Entities. @param query The Prepared Statement Query. Use ? for fields. @param fields The Fields that should be inserted into the Statement.

(final Callback<SQLResult<T>> callback, final String query, final Object... fields)

Source from the content-addressed store, hash-verified

28 * @param fields The Fields that should be inserted into the Statement.
29 */
30 public void query(final Callback<SQLResult<T>> callback, final String query, final Object... fields) {
31 database.EXECUTOR.execute(new Runnable() {
32 @Override
33 public void run() {
34 callback.call(query(query, fields));
35 }
36 });
37 }
38
39 /**
40 * Executes a MySQL Query and returns a List of all affected Entities.

Callers 8

runMethod · 0.95
initMethod · 0.45
loadChatConversationsMethod · 0.45
loadAnnouncementsMethod · 0.45
loadMessagesMethod · 0.45
loadSuggestionsMethod · 0.45
getVersionMethod · 0.45

Calls 11

addMethod · 0.95
executeMethod · 0.80
getObjectMethod · 0.80
closeResourcesMethod · 0.80
getConnectionMethod · 0.65
getLoggerMethod · 0.65
setMethod · 0.65
nextMethod · 0.45
newInstanceMethod · 0.45
getTypeMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected