From: jsimomaa Date: Thu, 29 Jun 2017 05:04:38 +0000 (+0300) Subject: CommonDBUtils possibleRelatedString/Integer were not "possible" X-Git-Tag: v1.31.0~291 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=c744918d55c304854e4fd316ccf04ce38d6071ff;ds=sidebyside CommonDBUtils possibleRelatedString/Integer were not "possible" refs #7335 Change-Id: Ia71f156e7c3b047582d5568343d8782003af7025 --- diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java index 1bcfb0a8a..ed09abb54 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java @@ -33,11 +33,11 @@ public class CommonDBUtils { } public static String possibleRelatedString(ReadGraph graph, Resource subject, Resource relation) throws DatabaseException { - return graph.getRelatedValue(subject, relation, Bindings.STRING); + return graph.getPossibleRelatedValue(subject, relation, Bindings.STRING); } public static Integer possibleRelatedInteger(ReadGraph graph, Resource subject, Resource relation) throws DatabaseException { - return graph.getRelatedValue(subject, relation, Bindings.INTEGER); + return graph.getPossibleRelatedValue(subject, relation, Bindings.INTEGER); } public static Resource getPossibleOwner(ReadGraph graph, Resource resource) throws DatabaseException {