Refactor to remove abstraction

This commit is contained in:
2023-05-20 19:58:47 -04:00
parent 962649c0f2
commit 5b3dfbcc21
2 changed files with 50 additions and 30 deletions
+3 -3
View File
@@ -43,11 +43,11 @@ public class dbAccountHandler extends dbHandlerBase {
return account;
try (Connection connection = DbManager.getConnection();
PreparedStatement accountQuery = connection.prepareStatement("SELECT * FROM `obj_account` WHERE `UID`=?")) {
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `obj_account` WHERE `UID`=?")) {
accountQuery.setLong(1, accountID);
preparedStatement.setLong(1, accountID);
ResultSet rs = accountQuery.executeQuery();
ResultSet rs = preparedStatement.executeQuery();
account = (Account) getObjectFromRs(rs);
} catch (SQLException e) {