Maor Lipchuk has posted comments on this change. Change subject: core: Example: Use UUID for handling database Guids ......................................................................
Patch Set 4: (1 inline comment) .................................................... File backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/BaseDAODbFacade.java Line 122: * @throws SQLException If resultSet does not contain columnName or its value cannot be cast to {@link UUID}. Line 123: */ Line 124: private static Guid getGuid(ResultSet resultSet, String columnName, Guid defaultValue) throws SQLException { Line 125: UUID uuid = (UUID) resultSet.getObject(columnName); Line 126: if (uuid == null || resultSet.wasNull()) { I still didn't understood why we need to check both validations which doing the same thing? or maybe I'm missing something? Line 127: return defaultValue; Line 128: } Line 129: return new Guid(uuid); Line 130: } -- To view, visit http://gerrit.ovirt.org/16281 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I4d30e1ab7303ecad68dbc9005ac5c6ef733f1707 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Greg Padgett <gpadg...@redhat.com> Gerrit-Reviewer: Liran Zelkha <liran.zel...@gmail.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches