]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
CommonDBUtils possibleRelatedString/Integer were not "possible" 61/661/1
authorjsimomaa <jani.simomaa@gmail.com>
Thu, 29 Jun 2017 05:04:38 +0000 (08:04 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Thu, 29 Jun 2017 05:04:38 +0000 (08:04 +0300)
refs #7335

Change-Id: Ia71f156e7c3b047582d5568343d8782003af7025

bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java

index 1bcfb0a8a27e614400f9d6d0abc64d6bab613cc4..ed09abb54cf7266afd95d6c1dfd158164bf80b24 100644 (file)
@@ -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 {