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)
| 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. |
no test coverage detected