File tree Expand file tree Collapse file tree
src/main/java/io/github/intisy/utils/custom/external Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,16 +279,17 @@ public void deleteTable(String tableName) {
279279 }
280280 }
281281
282- public List <Map <String , Object >> executeQuery (String sql ) {
282+ @ Deprecated
283+ public List <Map <String , Object >> executeRawQuery (String sql ) {
283284 logger .warn ("Executing raw query: " + sql );
284285 List <Map <String , Object >> results = new ArrayList <>();
285-
286+
286287 try (Statement stmt = getConnection ().createStatement ();
287288 ResultSet rs = stmt .executeQuery (sql )) {
288-
289+
289290 ResultSetMetaData metaData = rs .getMetaData ();
290291 int columnCount = metaData .getColumnCount ();
291-
292+
292293 while (rs .next ()) {
293294 Map <String , Object > row = new LinkedHashMap <>();
294295 for (int i = 1 ; i <= columnCount ; i ++) {
@@ -300,7 +301,7 @@ public List<Map<String, Object>> executeQuery(String sql) {
300301 }
301302 results .add (row );
302303 }
303-
304+
304305 logger .debug ("Query returned " + results .size () + " rows" );
305306 return results ;
306307 } catch (SQLException e ) {
You can’t perform that action at this time.
0 commit comments