Yair Zaslavsky has posted comments on this change. Change subject: aaa: removing dependency in DbUtils ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/26928/1/backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/tools/ManageDomainsDAOImpl.java File backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/tools/ManageDomainsDAOImpl.java: Line 43: ResultSet resultSet = null; Line 44: try (Connection connection = ds.getConnection(); Line 45: PreparedStatement prepareStatement = connection.prepareStatement(selectQuery);) { Line 46: log.info("getPermissionsForUser username: " + userName + " domain: " + domain); Line 47: prepareStatement.setString(1, userName); > I do not understand the comment :) i could not initialize the resultSet at the try (...) block so i could not benefit from it being autoclosable :( regarding StandaloneDataSource - will be more complex to do that. I can copy paste the class to the builtin module, and of course copy the behavior of EngineLocalConfig as well... once again, i prefer to continue to stabilize/fix bugs at the current work. Do you have more comments on the current implementation? Line 48: prepareStatement.setString(2, domain); Line 49: Line 50: resultSet = prepareStatement.executeQuery(); Line 51: if (resultSet.next()) { -- To view, visit http://gerrit.ovirt.org/26928 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I235566046ca4d0d81ebdc61f7da5f2a05c2ce6cd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
